Browse Source

test: report timeout in TapReporter

Be slightly more verbose in cases where tests time out.

PR-URL: https://github.com/nodejs/node/pull/2647
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
v4.x
Karl Skomski 9 years ago
committed by James M Snell
parent
commit
8f29d95a8c
  1. 4
      tools/test.py

4
tools/test.py

@ -263,6 +263,10 @@ class TapProgressIndicator(SimpleProgressIndicator):
if FLAKY in output.test.outcomes and self.flaky_tests_mode == DONTCARE:
status_line = status_line + ' # TODO : Fix flaky test'
logger.info(status_line)
if output.HasTimedOut():
logger.info('# TIMEOUT')
for l in output.output.stderr.splitlines():
logger.info('#' + l)
for l in output.output.stdout.splitlines():

Loading…
Cancel
Save