aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-04-06 20:53:11 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-04-06 20:53:11 +0300
commit4c6caa77d13f5610cfd76be6548fe5bf3cd0a2c0 (patch)
tree46c3954ef454140e709465fad377a093aca59b97
parentclang-format.py: refactoring (diff)
downloadcmake-common-4c6caa77d13f5610cfd76be6548fe5bf3cd0a2c0.tar.gz
cmake-common-4c6caa77d13f5610cfd76be6548fe5bf3cd0a2c0.zip
ctest-driver.py: handle additional '--'s
-rwxr-xr-xtools/ctest-driver.py3
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)