Skip to content

Commit 03d0e86

Browse files
committed
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 kubernetes#74727
1 parent 23a41c9 commit 03d0e86

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cluster/images/conformance/run_e2e.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ ginkgo_args=(
4545
"--noColor=true"
4646
)
4747

48+
if [[ -n ${E2E_DRYRUN:-} ]]; then
49+
ginkgo_args+=("--dryRun=true")
50+
fi
51+
4852
case ${E2E_PARALLEL} in
4953
'y'|'Y') ginkgo_args+=("--nodes=25") ;;
5054
[1-9]|[1-9][0-9]*) ginkgo_args+=("--nodes=${E2E_PARALLEL}") ;;

0 commit comments

Comments
 (0)