mirror of
https://github.com/nodejs/node.git
synced 2026-11-26 21:58:26 -05:00
tools: include exit code in test failures
Include the exit code in test failures. This will give us more information during the currently-puzzling failures that provide no information in CI such as: ``` 03:10:10 not ok 563 parallel/test-fs-truncate 03:10:10 --- 03:10:10 duration_ms: 1.119 03:10:10 severity: fail 03:10:10 stack: |- 03:10:10 ... ``` PR-URL: https://github.com/nodejs/node/pull/19855 Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com> Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
This commit is contained in:
1 parent
0a553d56b6
commit
114ba67b02
1 file changed
+1
-1
+1
-1
@@ -284,7 +284,7 @@ class TapProgressIndicator(SimpleProgressIndicator):
|
||||
if output.UnexpectedOutput():
|
||||
status_line = 'not ok %i %s' % (self._done, command)
|
||||
self.severity = 'fail'
|
||||
self.traceback = output.output.stdout + output.output.stderr
|
||||
self.traceback = "exit code: " + output.output.exit_code + "\n" + output.output.stdout + output.output.stderr
|
||||
|
||||
if FLAKY in output.test.outcomes and self.flaky_tests_mode == DONTCARE:
|
||||
status_line = status_line + ' # TODO : Fix flaky test'
|
||||
|
||||
Reference in new issue
Block a user