aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2015-05-12 09:43:54 -0700
committerGravatar Craig Tiller <ctiller@google.com>2015-05-12 09:45:06 -0700
commit8421678ed0bb8e0d40f78f1b7613566418f69844 (patch)
treef505a2e3d4713b794f8fcb00bd94d43038b7f8c2
parent72a96463f689748c7b63c9f39f92d33e87e87315 (diff)
Make runtests print logs on timed out tests
-rwxr-xr-xtools/run_tests/jobset.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/run_tests/jobset.py b/tools/run_tests/jobset.py
index b8b4cf0001..286b81dc3e 100755
--- a/tools/run_tests/jobset.py
+++ b/tools/run_tests/jobset.py
@@ -212,7 +212,9 @@ class Job(object):
if self._bin_hash:
update_cache.finished(self._spec.identity(), self._bin_hash)
elif self._state == _RUNNING and time.time() - self._start > 300:
- message('TIMEOUT', self._spec.shortname, do_newline=True)
+ self._tempfile.seek(0)
+ stdout = self._tempfile.read()
+ message('TIMEOUT', self._spec.shortname, stdout, do_newline=True)
self.kill()
return self._state