mirror of https://github.com/k3s-io/k3s
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 #74727pull/564/head
parent
23a41c9d7e
commit
03d0e86117
|
@ -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}") ;;
|
||||
|
|
Loading…
Reference in New Issue