Add support for dryRun option to kube-conformance image

A common issue users run into is wanting a list of tests
a certain regexp will run, without actually running it.

ginkgo supports this with the dryRun flag but it was not
exposed via the kube-conformance image. This change
will set the flag if the E2E_DRYRUN environment variable
is set.

Fixes #74727
pull/564/head
John Schnake 2019-02-28 09:04:06 -06:00
parent 23a41c9d7e
commit 03d0e86117
1 changed files with 4 additions and 0 deletions

View File

@ -45,6 +45,10 @@ ginkgo_args=(
"--noColor=true"
)
if [[ -n ${E2E_DRYRUN:-} ]]; then
ginkgo_args+=("--dryRun=true")
fi
case ${E2E_PARALLEL} in
'y'|'Y') ginkgo_args+=("--nodes=25") ;;
[1-9]|[1-9][0-9]*) ginkgo_args+=("--nodes=${E2E_PARALLEL}") ;;