diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2021-11-19 11:27:36 -0800 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2021-11-22 11:07:36 -0800 |
commit | ac137d4c42b5a0f5deeeaec0da7c110423d48f56 (patch) | |
tree | 0ec48d2b6d060a79cb564478d72fcfbd4d698c91 /run_single_test.py | |
parent | 150b110e7aa40082b79238d721f817126677f459 (diff) | |
download | meson-ac137d4c42b5a0f5deeeaec0da7c110423d48f56.zip meson-ac137d4c42b5a0f5deeeaec0da7c110423d48f56.tar.gz meson-ac137d4c42b5a0f5deeeaec0da7c110423d48f56.tar.bz2 |
run_single_test: fix running failing tests
Diffstat (limited to 'run_single_test.py')
-rwxr-xr-x | run_single_test.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/run_single_test.py b/run_single_test.py index 0a93573..0179a32 100755 --- a/run_single_test.py +++ b/run_single_test.py @@ -47,7 +47,16 @@ def main() -> None: if args.subtests: tests = [t for i, t in enumerate(tests) if i in args.subtests] - results = [run_test(t, t.args, '', True) for t in tests] + def should_fail(path: pathlib.Path) -> str: + dir_ = path.parent.stem + # FIXME: warning tets might not be handled correctly still… + if dir_.startswith(('failing', 'warning')): + if ' ' in dir_: + return dir_.split(' ')[1] + return 'meson' + return '' + + results = [run_test(t, t.args, should_fail(t.path), True) for t in tests] failed = False for test, result in zip(tests, results): if (result is None) or ('MESON_SKIP_TEST' in result.stdo): |