diff options
author | Eli Schwartz <eschwartz93@gmail.com> | 2023-08-31 17:17:55 -0400 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-09-01 14:27:53 -0400 |
commit | 156a9baab5f8b62d6a54f26fd361b493d1ddad4c (patch) | |
tree | 7db6ba5d04d969f143bd35ad2dcaa4dcc3df7b10 | |
parent | 0833a0fa670cf741ffb7f50e777d443d39115b6a (diff) | |
download | meson-156a9baab5f8b62d6a54f26fd361b493d1ddad4c.zip meson-156a9baab5f8b62d6a54f26fd361b493d1ddad4c.tar.gz meson-156a9baab5f8b62d6a54f26fd361b493d1ddad4c.tar.bz2 |
tests: repeat the failure reason in the detailed logs
-rwxr-xr-x | run_project_tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index 523db10..446dc12 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -1369,6 +1369,9 @@ def _run_tests(all_tests: T.List[T.Tuple[str, T.List[TestDef], bool]], right_w = max(3, right_w) failing_testcases.append(name_str) failing_logs.append(f'\n\x1b[31m{"="*left_w}\x1b[0m {name_str} \x1b[31m{"="*right_w}\x1b[0m\n') + _during = bold('Failed during:') + _reason = bold('Reason:') + failing_logs.append(f'{_during} {result.step.name}\n{_reason} {result.msg}\n') if result.step == BuildStep.configure and result.mlog != no_meson_log_msg: # For configure failures, instead of printing stdout, # print the meson log if available since it's a superset |