summaryrefslogtreecommitdiff
path: root/run_project_tests.py
diff options
context:
space:
mode:
authorEli Schwartz <eschwartz93@gmail.com>2023-08-30 13:58:34 -0400
committerEli Schwartz <eschwartz93@gmail.com>2023-09-01 14:27:53 -0400
commit0ecc8d5c8da91f210ca5216faabda0e0ee222cf2 (patch)
tree5931e06502ef81e5fb8d56a8b65d6fd847308e84 /run_project_tests.py
parent12e23f55d4e1789da822d7ea543dc89662503ad7 (diff)
downloadmeson-0ecc8d5c8da91f210ca5216faabda0e0ee222cf2.tar.gz
tests: make summary section for project tests more like pytest
Logs for failing tests come first, then the list of pass/fail.
Diffstat (limited to 'run_project_tests.py')
-rwxr-xr-xrun_project_tests.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/run_project_tests.py b/run_project_tests.py
index 042bcf1b1..af5b58db0 100755
--- a/run_project_tests.py
+++ b/run_project_tests.py
@@ -1624,10 +1624,6 @@ if __name__ == '__main__':
(passing_tests, failing_tests, skipped_tests) = res
except StopException:
pass
- print()
- print('Total passed tests: ', green(str(passing_tests)))
- print('Total failed tests: ', red(str(failing_tests)))
- print('Total skipped tests:', yellow(str(skipped_tests)))
if failing_tests > 0:
print('\nMesonlogs of failing tests\n')
for l in failing_logs:
@@ -1635,7 +1631,12 @@ if __name__ == '__main__':
print(l, '\n')
except UnicodeError:
print(l.encode('ascii', errors='replace').decode(), '\n')
- print('All failures:')
+ print()
+ print('Total passed tests: ', green(str(passing_tests)))
+ print('Total failed tests: ', red(str(failing_tests)))
+ print('Total skipped tests:', yellow(str(skipped_tests)))
+ if failing_tests > 0:
+ print('\nAll failures:')
for c in failing_testcases:
print(f' -> {c}')
for name, dirs, _ in all_tests: