From 4c6caa77d13f5610cfd76be6548fe5bf3cd0a2c0 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Tue, 6 Apr 2021 20:53:11 +0300 Subject: ctest-driver.py: handle additional '--'s --- tools/ctest-driver.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/ctest-driver.py b/tools/ctest-driver.py index 5900052..eaab3b8 100755 --- a/tools/ctest-driver.py +++ b/tools/ctest-driver.py @@ -96,7 +96,8 @@ def parse_args(argv=None): help='launch child process in a new console window') parser_run.add_argument('exe_path', metavar='PATH', help='path to the test executable') - parser_run.add_argument('exe_args', metavar='ARG', nargs='*', + # nargs='*' here would discard additional '--'s. + parser_run.add_argument('exe_args', metavar='ARG', nargs=argparse.REMAINDER, help='test executable arguments') parser_run.set_defaults(func=run_actual_test_driver) -- cgit v1.2.3