Skip to content

Commit 422b6e8

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 <ruben@bridgewater.de> Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Refael Ackermann <refack@gmail.com>
1 parent f8c5042 commit 422b6e8

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)