unit tests: Pass args to pytest

Gets --help working and --failfast too.
0.54
Nirbheek Chauhan 5 years ago
parent 11f0aa00f4
commit d487924991
  1. 3
      run_unittests.py

@ -7818,6 +7818,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