From 63f1b5bb7043d992e374da7f69bdec4f57494324 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 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: