From d48792499101bba53efe7961ca7b4097959debd6 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 11 Jun 2020 10:35:28 +0530 Subject: [PATCH] unit tests: Pass args to pytest Gets --help working and --failfast too. --- run_unittests.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/run_unittests.py b/run_unittests.py index ccf5423c2..102c04198 100755 --- a/run_unittests.py +++ b/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: