diff options
author | 2015-02-11 14:24:46 -0800 | |
---|---|---|
committer | 2015-02-11 14:27:14 -0800 | |
commit | 5e35b140941099ee25674ef559e5297be3399cbb (patch) | |
tree | d56bcb1b86776abde382fcb148bff28c1cb7cc15 /tools/run_tests | |
parent | b7bfe698c52e65d6b2c26a45335088595609c302 (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-x | tools/run_tests/run_tests.py | 10 |
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: |