diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2021-11-27 22:33:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-27 22:33:15 +0200 |
commit | 11e26a0fa9fed90d4720f1c87de2c9987f5e657c (patch) | |
tree | 7f259ddb22472733389b0ecdbe745f69daab0b74 /run_single_test.py | |
parent | d014ccf8d79a55e64c3c8ea6ffe0a3ffaa183a37 (diff) | |
parent | d412f0aff570933903fb2eba7093191138ecf94a (diff) | |
download | meson-11e26a0fa9fed90d4720f1c87de2c9987f5e657c.zip meson-11e26a0fa9fed90d4720f1c87de2c9987f5e657c.tar.gz meson-11e26a0fa9fed90d4720f1c87de2c9987f5e657c.tar.bz2 |
Merge pull request #9599 from dcbaker/submit/typed_kwargs-message-improvements
Improve error messages for typed_kwarg type mismatches in containers
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..031c306 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), args.use_tmpdir) for t in tests] failed = False for test, result in zip(tests, results): if (result is None) or ('MESON_SKIP_TEST' in result.stdo): |