unit tests: Pass args to pytest

Gets --help working and --failfast too.
pull/7300/head
Nirbheek Chauhan 5 years ago committed by Nirbheek Chauhan
parent 47c477711b
commit 63f1b5bb70
  1. 3
      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:

Loading…
Cancel
Save