Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add newline between failed test outputs
  • Loading branch information
GeoffreyBooth committed Dec 25, 2022
commit a645ef6f44904d413fe7510d8a36647fd213f136
5 changes: 3 additions & 2 deletions tools/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,7 @@ def HasRun(self, output):
print("--- %s ---" % PrintCrashed(output.output.exit_code))
if output.HasTimedOut():
print("--- TIMEOUT ---")
print("\n") # Two blank lines between failures, for visual separation

def Truncate(self, str, length):
if length and (len(str) > (length - 3)):
Expand Down Expand Up @@ -1779,9 +1780,9 @@ def should_keep(case):
sys.stderr.write("%4i (%s) %s\n" % (i, t, entry.GetLabel()))

if result['allPassed']:
Comment thread
GeoffreyBooth marked this conversation as resolved.
print('All tests passed.')
print("\nAll tests passed.")
else:
print('Failed tests:')
print("\nFailed tests:")
for failedTest in result['failed']:
print(EscapeCommand(failedTest.command))

Expand Down