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 |