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 @@ -196,7 +196,7 @@ def Done(self):
196
196
print failed .output .stdout .strip ()
197
197
print "Command: %s" % EscapeCommand (failed .command )
198
198
if failed .HasCrashed ():
199
- print "--- CRASHED ---"
199
+ print "--- %s ---" % PrintCrashed ( failed . output . exit_code )
200
200
if failed .HasTimedOut ():
201
201
print "--- TIMEOUT ---"
202
202
if len (self .failed ) == 0 :
@@ -285,6 +285,9 @@ def HasRun(self, output):
285
285
logger .info (status_line )
286
286
self ._printDiagnostic ("\n " .join (output .diagnostic ))
287
287
288
+ if output .HasCrashed ():
289
+ self ._printDiagnostic (PrintCrashed (output .output .exit_code ))
290
+
288
291
if output .HasTimedOut ():
289
292
self ._printDiagnostic ('TIMEOUT' )
290
293
@@ -347,7 +350,7 @@ def HasRun(self, output):
347
350
print self .templates ['stderr' ] % stderr
348
351
print "Command: %s" % EscapeCommand (output .command )
349
352
if output .HasCrashed ():
350
- print "--- CRASHED ---"
353
+ print "--- %s ---" % PrintCrashed ( output . output . exit_code )
351
354
if output .HasTimedOut ():
352
355
print "--- TIMEOUT ---"
353
356
@@ -1476,6 +1479,13 @@ def FormatTime(d):
1476
1479
return time .strftime ("%M:%S." , time .gmtime (d )) + ("%03i" % millis )
1477
1480
1478
1481
1482
+ def PrintCrashed (code ):
1483
+ if utils .IsWindows ():
1484
+ return "CRASHED"
1485
+ else :
1486
+ return "CRASHED (Signal: %d)" % - code
1487
+
1488
+
1479
1489
def Main ():
1480
1490
parser = BuildOptions ()
1481
1491
(options , args ) = parser .parse_args ()
You can’t perform that action at this time.
0 commit comments