Skip to content

Commit f49964a

Browse files
committed
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: nodejs#19906 (comment)
1 parent 0cca27b commit f49964a

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)