aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Yang Gao <yangg@google.com>2015-02-26 09:30:36 -0800
committerGravatar Yang Gao <yangg@google.com>2015-02-26 09:30:36 -0800
commit0e32857bfdab7422b22508fac833d7c651470691 (patch)
tree3bc397d6f1bf3c47639900df482cb72876626809 /tools
parentc33731aea655720293576e77ec4d5f04e1f7d545 (diff)
parentc1f1162787a84abdbc6cbe1717909692fad41261 (diff)
Merge pull request #784 from ctiller/timeout
Introduce slowdown factor for unit test deadlines
Diffstat (limited to 'tools')
-rwxr-xr-xtools/run_tests/run_tests.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py
index 7732466d6e..7c6a050a67 100755
--- a/tools/run_tests/run_tests.py
+++ b/tools/run_tests/run_tests.py
@@ -232,6 +232,7 @@ class TestCache(object):
def finished(self, cmdline, bin_hash):
self._last_successful_run[cmdline] = bin_hash
+ self.save()
def dump(self):
return [{'cmdline': k, 'hash': v}
@@ -286,7 +287,6 @@ if forever:
'All tests are now passing properly',
do_newline=True)
jobset.message('IDLE', 'No change detected')
- test_cache.save()
while not have_files_changed():
time.sleep(1)
else:
@@ -297,5 +297,4 @@ else:
jobset.message('SUCCESS', 'All tests passed', do_newline=True)
else:
jobset.message('FAILED', 'Some tests failed', do_newline=True)
- test_cache.save()
sys.exit(result)