From 156a9baab5f8b62d6a54f26fd361b493d1ddad4c Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Thu, 31 Aug 2023 17:17:55 -0400 Subject: [PATCH] tests: repeat the failure reason in the detailed logs --- run_project_tests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run_project_tests.py b/run_project_tests.py index 523db1055..446dc12b8 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