diff options
| author | Eli Schwartz <eschwartz@archlinux.org> | 2023-01-10 23:00:36 -0500 |
|---|---|---|
| committer | Eli Schwartz <eschwartz@archlinux.org> | 2023-01-12 14:56:39 -0500 |
| commit | 901dc34ed5971eb435aedf6feb14528d8225b578 (patch) | |
| tree | 9836d451e79112bee6c560e997833b72301ada1f /run_project_tests.py | |
| parent | 6bfe5d323533d40b12d98ee20e4258d9488187a9 (diff) | |
| download | meson-901dc34ed5971eb435aedf6feb14528d8225b578.tar.gz | |
tests: properly log the reason why a test got unexpectedly skipped
Diffstat (limited to 'run_project_tests.py')
| -rwxr-xr-x | run_project_tests.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/run_project_tests.py b/run_project_tests.py index ce913f951..99e49788f 100755 --- a/run_project_tests.py +++ b/run_project_tests.py @@ -1330,7 +1330,7 @@ def _run_tests(all_tests: T.List[T.Tuple[str, T.List[TestDef], bool]], if not skip_as_expected: failing_tests += 1 if is_skipped: - skip_msg = 'Test asked to be skipped, but was not expected to' + skip_msg = f'Test asked to be skipped ({skip_reason}), but was not expected to' status = TestStatus.UNEXSKIP else: skip_msg = 'Test ran, but was expected to be skipped' @@ -1338,6 +1338,7 @@ def _run_tests(all_tests: T.List[T.Tuple[str, T.List[TestDef], bool]], result.msg = f"{skip_msg} for MESON_CI_JOBNAME '{ci_jobname}'" f.update_log(status) + safe_print(bold('Reason:'), result.msg) current_test = ET.SubElement(current_suite, 'testcase', {'name': testname, 'classname': t.category}) ET.SubElement(current_test, 'failure', {'message': result.msg}) continue |
