Skip to content

Commit

Permalink
Merge pull request grpc#1078 from dklempner/run_tests_timeout
Browse files Browse the repository at this point in the history
Unconditionally add a newline if a test times out or fails.
  • Loading branch information
vjpai committed Mar 18, 2015
2 parents 1e82c63 + 559543e commit 6fba6e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/run_tests/jobset.py
Original file line number Diff line number Diff line change
Expand Up @@ -192,15 +192,15 @@ def state(self, update_cache):
self._tempfile.seek(0)
stdout = self._tempfile.read()
message('FAILED', '%s [ret=%d]' % (
self._spec.shortname, self._process.returncode), stdout)
self._spec.shortname, self._process.returncode), stdout, do_newline=True)
else:
self._state = _SUCCESS
message('PASSED', '%s [time=%.1fsec]' % (self._spec.shortname, elapsed),
do_newline=self._newline_on_success or self._travis)
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=self._travis)
message('TIMEOUT', self._spec.shortname, do_newline=True)
self.kill()
return self._state

Expand Down

0 comments on commit 6fba6e1

Please sign in to comment.