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