mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-20 18:49:30 +01:00
test: Make summary row bold-red if any test failed
Make the summary row of the test runner bold red if any test fails. This helps visibility if something fails.
This commit is contained in:
parent
18606eb475
commit
f92541f7ea
@ -378,7 +378,11 @@ def print_results(test_results, max_len_name, runtime):
|
||||
results += str(test_result)
|
||||
|
||||
status = TICK + "Passed" if all_passed else CROSS + "Failed"
|
||||
if not all_passed:
|
||||
results += RED[1]
|
||||
results += BOLD[1] + "\n%s | %s | %s s (accumulated) \n" % ("ALL".ljust(max_len_name), status.ljust(9), time_sum) + BOLD[0]
|
||||
if not all_passed:
|
||||
results += RED[0]
|
||||
results += "Runtime: %s s\n" % (runtime)
|
||||
print(results)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user