aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-06-11 10:35:28 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-06-11 07:10:43 +0000
commit63f1b5bb7043d992e374da7f69bdec4f57494324 (patch)
treeadf451cf24159cb0b4e9e32762611fc1515dcc71
parent47c477711b61f7b60551129f039fba67f7d3483e (diff)
downloadmeson-63f1b5bb7043d992e374da7f69bdec4f57494324.zip
meson-63f1b5bb7043d992e374da7f69bdec4f57494324.tar.gz
meson-63f1b5bb7043d992e374da7f69bdec4f57494324.tar.bz2
unit tests: Pass args to pytest
Gets --help working and --failfast too.
-rwxr-xr-xrun_unittests.py3
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: