aboutsummaryrefslogtreecommitdiff
path: root/run_single_test.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2021-03-24 22:52:15 +0200
committerGitHub <noreply@github.com>2021-03-24 22:52:15 +0200
commit54767ab482eb30a843974e985d2998f5476c906c (patch)
tree34e083053ab4f12e1643b826ef12d55a8446dfdc /run_single_test.py
parentc8826e907a3e1a2428ddec73133f3c3e6ea859a2 (diff)
parent1767c57492529fc7c3823871f861db35b89f5c1f (diff)
downloadmeson-54767ab482eb30a843974e985d2998f5476c906c.zip
meson-54767ab482eb30a843974e985d2998f5476c906c.tar.gz
meson-54767ab482eb30a843974e985d2998f5476c906c.tar.bz2
Merge pull request #8568 from dcbaker/submit/qt-dependency-factory
QT: use a proper dependency factory
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 9b3ed18..c6018d5 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,