summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-06-11 10:35:28 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2020-06-11 10:37:10 +0530
commitc95ccc792dfbd231c03419573e9266d964f24a34 (patch)
treeadf451cf24159cb0b4e9e32762611fc1515dcc71
parentd611b6e2b6b7217a2faaa835c22159a87bbf295b (diff)
downloadmeson-nirbheek/bitcode-headerpad.tar.gz
unit tests: Pass args to pytestnirbheek/bitcode-headerpad
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 9572b2711..669853e84 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: