From 208cee254b93781887513c3c0e3390def202f659 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 18 Apr 2021 19:45:41 +0300 Subject: tools: bring back the .py extension It should help running the scripts on Windows, where the .py extension is associated with the Python interpreter. --- docs/ctest-driver.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'docs/ctest-driver.md') diff --git a/docs/ctest-driver.md b/docs/ctest-driver.md index 1a70f5d..af7c3b2 100644 --- a/docs/ctest-driver.md +++ b/docs/ctest-driver.md @@ -4,10 +4,10 @@ PASS_REGULAR_EXPRESSION feature: 1. The regular expression syntax used by CMake is deficient. 2. The exit code of a test is ignored if one of the regexes matches. -`ctest-driver` tries to fix them. +`ctest-driver.py` tries to fix them. - $ python3 path/to/tools/ctest-driver run --pass-regex OK --fail-regex Fail -- path/to/executable arg1 arg2 + $ python3 path/to/tools/ctest-driver.py run --pass-regex OK --fail-regex Fail -- path/to/executable arg1 arg2 In addition, it's a cross-platform `grep`: - $ python3 path/to/tools/ctest-driver grep --pass-regex OK --fail-regex Fail -- path/to/logfile.log + $ python3 path/to/tools/ctest-driver.py grep --pass-regex OK --fail-regex Fail -- path/to/logfile.log -- cgit v1.2.3