@@ -255,11 +255,12 @@ def HasRun(self, output):
255
255
256
256
class TapProgressIndicator (SimpleProgressIndicator ):
257
257
258
- def _printDiagnostic (self , traceback , severity ):
259
- logger .info (' severity: %s' , severity )
258
+ def _printDiagnostic (self ):
259
+ logger .info (' severity: %s' , self .severity )
260
+ self .exitcode and logger .info (' exitcode: %s' , self .exitcode )
260
261
logger .info (' stack: |-' )
261
262
262
- for l in traceback .splitlines ():
263
+ for l in self . traceback .splitlines ():
263
264
logger .info (' ' + l )
264
265
265
266
def Starting (self ):
@@ -274,6 +275,7 @@ def HasRun(self, output):
274
275
self ._done += 1
275
276
self .traceback = ''
276
277
self .severity = 'ok'
278
+ self .exitcode = ''
277
279
278
280
# Print test name as (for example) "parallel/test-assert". Tests that are
279
281
# scraped from the addons documentation are all named test.js, making it
@@ -285,7 +287,8 @@ def HasRun(self, output):
285
287
if output .UnexpectedOutput ():
286
288
status_line = 'not ok %i %s' % (self ._done , command )
287
289
self .severity = 'fail'
288
- self .traceback = "exit code: " + output .output .exit_code + "\n " + output .output .stdout + output .output .stderr
290
+ self .exitcode = output .output .exit_code
291
+ self .traceback = output .output .stdout + output .output .stderr
289
292
290
293
if FLAKY in output .test .outcomes and self .flaky_tests_mode == DONTCARE :
291
294
status_line = status_line + ' # TODO : Fix flaky test'
@@ -331,7 +334,7 @@ def HasRun(self, output):
331
334
if self .severity is not 'ok' or self .traceback is not '' :
332
335
if output .HasTimedOut ():
333
336
self .traceback = 'timeout'
334
- self ._printDiagnostic (self . traceback , self . severity )
337
+ self ._printDiagnostic ()
335
338
logger .info (' ...' )
336
339
337
340
def Done (self ):
0 commit comments