summaryrefslogtreecommitdiff
path: root/run_single_test.py
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2021-03-23 15:08:32 -0700
committerDylan Baker <dylan@pnwbakers.com>2021-03-23 15:28:08 -0700
commitadbfa12409dbbfc44fe48d12abd2d92bec9249ad (patch)
tree7a60bef0bd70626ea1aed33ab03f5019a6f95cca /run_single_test.py
parentc86c18066e8d163eabe18f5d6d024c7ac97df988 (diff)
downloadmeson-adbfa12409dbbfc44fe48d12abd2d92bec9249ad.tar.gz
run_single_test: Handle MESON_SKIP_TEST correctly
Diffstat (limited to 'run_single_test.py')
-rwxr-xr-xrun_single_test.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/run_single_test.py b/run_single_test.py
index 9b3ed1854..c6018d5a3 100755
--- a/run_single_test.py
+++ b/run_single_test.py
@@ -16,7 +16,7 @@ import typing as T
from mesonbuild import environment
from mesonbuild import mlog
from mesonbuild import mesonlib
-from run_project_tests import TestDef, load_test_json, run_test, BuildStep
+from run_project_tests import TestDef, load_test_json, run_test, BuildStep, skippable
from run_tests import get_backend_commands, guess_backend, get_fake_options
if T.TYPE_CHECKING:
@@ -62,7 +62,7 @@ def main() -> None:
results = [run_test(t, t.args, comp, backend, backend_args, commands, False, True) for t in tests]
failed = False
for test, result in zip(tests, results):
- if result is None:
+ if (result is None) or (('MESON_SKIP_TEST' in result.stdo) and (skippable(str(args.case.parent), test.path.as_posix()))):
msg = mlog.yellow('SKIP:')
elif result.msg:
msg = mlog.red('FAIL:')
@@ -70,7 +70,7 @@ def main() -> None:
else:
msg = mlog.green('PASS:')
mlog.log(msg, test.display_name())
- if result.msg:
+ if result.msg and 'MESON_SKIP_TEST' not in result.stdo:
mlog.log('reason:', result.msg)
if result.step is BuildStep.configure:
# For configure failures, instead of printing stdout,