File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -197,7 +197,7 @@ def Done(self):
197
197
print failed .output .stdout .strip ()
198
198
print "Command: %s" % EscapeCommand (failed .command )
199
199
if failed .HasCrashed ():
200
- print "--- CRASHED ---"
200
+ print "--- %s ---" % PrintCrashed ( failed . output . exit_code )
201
201
if failed .HasTimedOut ():
202
202
print "--- TIMEOUT ---"
203
203
if len (self .failed ) == 0 :
@@ -286,6 +286,9 @@ def HasRun(self, output):
286
286
logger .info (status_line )
287
287
self ._printDiagnostic ("\n " .join (output .diagnostic ))
288
288
289
+ if output .HasCrashed ():
290
+ self ._printDiagnostic (PrintCrashed (output .output .exit_code ))
291
+
289
292
if output .HasTimedOut ():
290
293
self ._printDiagnostic ('TIMEOUT' )
291
294
@@ -346,7 +349,7 @@ def HasRun(self, output):
346
349
print self .templates ['stderr' ] % stderr
347
350
print "Command: %s" % EscapeCommand (output .command )
348
351
if output .HasCrashed ():
349
- print "--- CRASHED ---"
352
+ print "--- %s ---" % PrintCrashed ( output . output . exit_code )
350
353
if output .HasTimedOut ():
351
354
print "--- TIMEOUT ---"
352
355
@@ -1491,6 +1494,13 @@ def FormatTime(d):
1491
1494
return time .strftime ("%M:%S." , time .gmtime (d )) + ("%03i" % millis )
1492
1495
1493
1496
1497
+ def PrintCrashed (code ):
1498
+ if utils .IsWindows ():
1499
+ return "CRASHED"
1500
+ else :
1501
+ return "CRASHED (Signal: %d)" % - code
1502
+
1503
+
1494
1504
def Main ():
1495
1505
parser = BuildOptions ()
1496
1506
(options , args ) = parser .parse_args ()
You can’t perform that action at this time.
0 commit comments