diff options
author | Edward Thomson <ethomson@edwardthomson.com> | 2018-09-10 12:10:29 +0100 |
---|---|---|
committer | Edward Thomson <ethomson@edwardthomson.com> | 2018-09-10 12:10:29 +0100 |
commit | 89024c7e6a1a38071a3b08504b8b1b247cebe37c (patch) | |
tree | 4000ea4ad734da7a5c957d01b7f9b4b25e580ab5 | |
parent | 6353e6a94b082ad15a06a7210d45aecbec685afb (diff) | |
download | libgit2-89024c7e6a1a38071a3b08504b8b1b247cebe37c.tar.gz |
ci: only run the exact named test
Our CI test system invokes ctest with the name of the given tests it
wishes to invoke. ctest (with the `-R` flag) treats this name as a
regular expression. Provide anchors in the regular expression to avoid
matching additional tests in this search.
-rwxr-xr-x | ci/test.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/test.sh b/ci/test.sh index 13f19df98..e9736461f 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -41,7 +41,7 @@ die() { # test configuration in a single place (tests/CMakeLists.txt) instead of running clar # here as well. But it allows us to wrap our test harness with a leak checker like valgrind. run_test() { - TEST_CMD=$(ctest -N -V -R $1 | sed -n 's/^[0-9]*: Test command: //p') + TEST_CMD=$(ctest -N -V -R "^${1}$" | sed -n 's/^[0-9]*: Test command: //p') if [ "$LEAK_CHECK" = "valgrind" ]; then RUNNER="$VALGRIND $TEST_CMD" |