unit tests: Pass args to pytest
Gets --help working and --failfast too.
@@ -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:
