From 59b195f8645e85fd656881ef8b2cb0c03f8738b2 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Tue, 12 May 2015 09:43:54 -0700 Subject: [PATCH] Make runtests print logs on timed out tests --- tools/run_tests/jobset.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/run_tests/jobset.py b/tools/run_tests/jobset.py index b8b4cf0001a..286b81dc3e3 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