diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-03-28 11:17:36 +0200 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2018-03-28 11:17:36 +0200 |
commit | f92541f7ea66b81343426db0b40f7ba4062df342 (patch) | |
tree | 82df0dcfdee4484be1ef7928b2c64f0b90cbc9c2 /test | |
parent | 18606eb475fbbdbeb79f76e9955c4cf74edfa645 (diff) |
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.
Diffstat (limited to 'test')
-rwxr-xr-x | test/functional/test_runner.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/test_runner.py b/test/functional/test_runner.py index 29ec535ca8..427158401d 100755 --- a/test/functional/test_runner.py +++ b/test/functional/test_runner.py @@ -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) |