Merge pull request #1560 from ctiller/timeouts-need-logs-too

Make runtests print logs on timed out tests
pull/1554/head^2
Tim Emiola 10 years ago
commit fae09dd0a8
  1. 4
      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

Loading…
Cancel
Save