diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-06 20:53:11 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2021-04-06 20:53:11 +0300 |
commit | 4c6caa77d13f5610cfd76be6548fe5bf3cd0a2c0 (patch) | |
tree | 46c3954ef454140e709465fad377a093aca59b97 /tools/ctest-driver | |
parent | clang-format.py: refactoring (diff) | |
download | cmake-common-4c6caa77d13f5610cfd76be6548fe5bf3cd0a2c0.tar.gz cmake-common-4c6caa77d13f5610cfd76be6548fe5bf3cd0a2c0.zip |
ctest-driver.py: handle additional '--'s
Diffstat (limited to '')
-rwxr-xr-x | tools/ctest-driver.py | 3 |
1 files changed, 2 insertions, 1 deletions
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) |