Skip to content

Commit ab13f13

Browse files
TrottMylesBorins
authored andcommitted
tools: show stdout/stderr for timed out tests
When a test times out, the contents of stdout and stderr can often be highly valuable in debugging. Provide that information. Refs: #19906 (comment) PR-URL: #20260 Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Michael Dawson <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Refael Ackermann <[email protected]>
1 parent 1490164 commit ab13f13

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ def HasRun(self, output):
333333
(total_seconds, duration.microseconds / 1000))
334334
if self.severity is not 'ok' or self.traceback is not '':
335335
if output.HasTimedOut():
336-
self.traceback = 'timeout'
336+
self.traceback = 'timeout\n' + output.output.stdout + output.output.stderr
337337
self._printDiagnostic()
338338
logger.info(' ...')
339339

0 commit comments

Comments
 (0)