Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1248)

Unified Diff: mojo/devtools/common/mojo_test

Issue 1276073004: Offline By Default (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Add missing explicits. Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: mojo/devtools/common/mojo_test
diff --git a/mojo/devtools/common/mojo_test b/mojo/devtools/common/mojo_test
index 45cdb0d390e622c55d85333354e8f1c8f37990e0..8f06f4254e552d8827897fe7504bf9b5bfc300f3 100755
--- a/mojo/devtools/common/mojo_test
+++ b/mojo/devtools/common/mojo_test
@@ -49,6 +49,8 @@ Any arguments not recognized by the script will be passed on as shell arguments.
_logger = logging.getLogger()
+_CACHE_SERVICE_URL = 'mojo:url_response_disk_cache'
+
def main():
parser = argparse.ArgumentParser(
@@ -66,6 +68,9 @@ def main():
# We need root to have the stdout of the shell available on the host.
config.require_root = True
shell, common_shell_args = shell_arguments.get_shell(config, shell_args)
+ # Tests must be reproducible. Start with an empty cache.
+ common_shell_args.append(
+ "--args-for=%s %s" % (_CACHE_SERVICE_URL, "--clear"))
except shell_config.ShellConfigurationException as e:
print e
return 1

Powered by Google App Engine
This is Rietveld 408576698