diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2020-06-11 10:35:28 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek.chauhan@gmail.com> | 2020-06-11 07:10:43 +0000 |
commit | 63f1b5bb7043d992e374da7f69bdec4f57494324 (patch) | |
tree | adf451cf24159cb0b4e9e32762611fc1515dcc71 | |
parent | 47c477711b61f7b60551129f039fba67f7d3483e (diff) | |
download | meson-63f1b5bb7043d992e374da7f69bdec4f57494324.zip meson-63f1b5bb7043d992e374da7f69bdec4f57494324.tar.gz meson-63f1b5bb7043d992e374da7f69bdec4f57494324.tar.bz2 |
unit tests: Pass args to pytest
Gets --help working and --failfast too.
-rwxr-xr-x | run_unittests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/run_unittests.py b/run_unittests.py index 9572b27..669853e 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -8150,6 +8150,9 @@ def convert_args(argv): test_list = [] for arg in argv: if arg.startswith('-'): + if arg in ('-f', '--failfast'): + arg = '--exitfirst' + pytest_args.append(arg) continue # ClassName.test_name => 'ClassName and test_name' if '.' in arg: |