summaryrefslogtreecommitdiff
path: root/ci/build
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2020-07-05 18:57:24 +0200
committerJoel Rosdahl <joel@rosdahl.net>2020-07-05 21:05:42 +0200
commit7ff9f8ecab019e24a567618dfa511bbecc7d61f2 (patch)
tree754624d994e58842c8d7d8aaad9e90e1bb533def /ci/build
parent66ef49bd55b85594d7e4ac22c42203c50c70b122 (diff)
downloadccache-7ff9f8ecab019e24a567618dfa511bbecc7d61f2.tar.gz
Pass arguments to ci/build to ctest
This makes it possible to only run a subset of the tests by for instance running “build-in-docker <name> -R <test>”.
Diffstat (limited to 'ci/build')
-rwxr-xr-xci/build2
1 files changed, 1 insertions, 1 deletions
diff --git a/ci/build b/ci/build
index 5b79f277..b326e9a6 100755
--- a/ci/build
+++ b/ci/build
@@ -20,6 +20,6 @@ else
# 4 jobs seem to be a reasonable default for Travis.
${CMAKE_PREFIX:-} cmake --build . ${BUILDEXTRAFLAGS:-} -- -j${JOBS}
# Warning: Rare random failures when running with -j4.
- [ "${RUN_TESTS:-1}" -ne "1" ] || ctest --output-on-failure -j${JOBS}
+ [ "${RUN_TESTS:-1}" -ne "1" ] || ctest --output-on-failure -j${JOBS} "$@"
fi
exit 0