Skip to content

Commit

Permalink
Add newline between failed test outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
GeoffreyBooth committed Dec 25, 2022
1 parent 639e1a8 commit a645ef6
Showing 1 changed file with 3 additions and 2 deletions.
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']:
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

0 comments on commit a645ef6

Please sign in to comment.