aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/run_tests
diff options
context:
space:
mode:
authorGravatar David Klempner <klempner@google.com>2015-02-11 14:24:46 -0800
committerGravatar David Klempner <klempner@google.com>2015-02-11 14:27:14 -0800
commit5e35b140941099ee25674ef559e5297be3399cbb (patch)
treed56bcb1b86776abde382fcb148bff28c1cb7cc15 /tools/run_tests
parentb7bfe698c52e65d6b2c26a45335088595609c302 (diff)
Disable test caching when runs_per_test > 1
Otherwise the tests just stop once they succeed, or don't even run at all if they passed in a previous run.
Diffstat (limited to 'tools/run_tests')
-rwxr-xr-xtools/run_tests/run_tests.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index cb54c0db82..0a42ffc1b5 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -228,8 +228,11 @@ def _build_and_run(check_cancelled, newline_on_success, cache):
return 0
-test_cache = TestCache()
-test_cache.maybe_load()
+if runs_per_test == 1:
+ test_cache = TestCache()
+ test_cache.maybe_load()
+else:
+ test_cache = None
if forever:
success = True
@@ -246,7 +249,8 @@ if forever:
'All tests are now passing properly',
do_newline=True)
jobset.message('IDLE', 'No change detected')
- test_cache.save()
+ if test_cache != None:
+ test_cache.save()
while not have_files_changed():
time.sleep(1)
else: