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:
hotpineapple 2025-09-09 15:30:41 +09:00 committed by GitHub
parent cc89e4cff8
commit 96a749b7b3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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