From 5e35b140941099ee25674ef559e5297be3399cbb Mon Sep 17 00:00:00 2001 From: David Klempner Date: Wed, 11 Feb 2015 14:24:46 -0800 Subject: 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. --- tools/run_tests/run_tests.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tools/run_tests') 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: -- cgit v1.2.3