mirror of
https://github.com/zebrajr/node.git
synced 2025-12-06 12:20:27 +01:00
tools: print appropriate output when test aborted
distinguish test abort from all tests passed. PR-URL: https://github.com/nodejs/node/pull/59794 Reviewed-By: Daeyeon Jeong <daeyeon.dev@gmail.com> Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
parent
cc89e4cff8
commit
96a749b7b3
|
|
@ -174,7 +174,7 @@ class ProgressIndicator(object):
|
|||
raise
|
||||
self.Done()
|
||||
return {
|
||||
'allPassed': not self.failed,
|
||||
'allPassed': not self.failed and not self.shutdown_event.is_set(),
|
||||
'failed': self.failed,
|
||||
}
|
||||
|
||||
|
|
@ -1843,11 +1843,12 @@ def Main():
|
|||
|
||||
if result['allPassed']:
|
||||
print("\nAll tests passed.")
|
||||
else:
|
||||
elif result['failed']:
|
||||
print("\nFailed tests:")
|
||||
for failure in result['failed']:
|
||||
print(EscapeCommand(failure.command))
|
||||
|
||||
else:
|
||||
print("\nTest aborted.")
|
||||
return exitcode
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user