We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f501443 commit 31dfaf3Copy full SHA for 31dfaf3
prow.sh
@@ -203,7 +203,16 @@ configvar CSI_PROW_SANITY_CONTAINER "hostpath" "Kubernetes container with CSI dr
203
# by setting CSI_PROW_TESTS_SANITY.
204
configvar CSI_PROW_TESTS "unit parallel serial parallel-alpha serial-alpha ${CSI_PROW_TESTS_SANITY}" "tests to run"
205
test_enabled () {
206
- echo "${CSI_PROW_TESTS}" | grep -q -w -e "$1"
+ local test="$1"
207
+ # We want word-splitting here, so ignore: Double quote to prevent globbing and word splitting.
208
+ # shellcheck disable=SC2086
209
+ set ${CSI_PROW_TESTS}
210
+ for t in "$@"; do
211
+ if [ "$t" = "$test" ]; then
212
+ return
213
+ fi
214
+ done
215
+ return 1
216
}
217
218
# Serial vs. parallel is always determined by these regular expressions.
0 commit comments