Skip to content

Commit adbfa12

Browse files
committed
run_single_test: Handle MESON_SKIP_TEST correctly
1 parent c86c180 commit adbfa12

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

run_single_test.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
from mesonbuild import environment
1717
from mesonbuild import mlog
1818
from mesonbuild import mesonlib
19-
from run_project_tests import TestDef, load_test_json, run_test, BuildStep
19+
from run_project_tests import TestDef, load_test_json, run_test, BuildStep, skippable
2020
from run_tests import get_backend_commands, guess_backend, get_fake_options
2121

2222
if T.TYPE_CHECKING:
@@ -62,15 +62,15 @@ def main() -> None:
6262
results = [run_test(t, t.args, comp, backend, backend_args, commands, False, True) for t in tests]
6363
failed = False
6464
for test, result in zip(tests, results):
65-
if result is None:
65+
if (result is None) or (('MESON_SKIP_TEST' in result.stdo) and (skippable(str(args.case.parent), test.path.as_posix()))):
6666
msg = mlog.yellow('SKIP:')
6767
elif result.msg:
6868
msg = mlog.red('FAIL:')
6969
failed = True
7070
else:
7171
msg = mlog.green('PASS:')
7272
mlog.log(msg, test.display_name())
73-
if result.msg:
73+
if result.msg and 'MESON_SKIP_TEST' not in result.stdo:
7474
mlog.log('reason:', result.msg)
7575
if result.step is BuildStep.configure:
7676
# For configure failures, instead of printing stdout,

0 commit comments

Comments
 (0)