Skip to content

Commit

Permalink
Add variable for local test focus
Browse files Browse the repository at this point in the history
  • Loading branch information
RaunakShah committed Oct 10, 2022
1 parent fb0e3c2 commit 8726d46
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions prow.sh
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,10 @@ configvar CSI_PROW_E2E_ALPHA_GATES "$(get_versioned_variable CSI_PROW_E2E_ALPHA_
configvar CSI_PROW_E2E_GATES_LATEST '' "non alpha feature gates for latest Kubernetes"
configvar CSI_PROW_E2E_GATES "$(get_versioned_variable CSI_PROW_E2E_GATES "${csi_prow_kubernetes_version_suffix}")" "non alpha E2E feature gates"

# Focus for local tests run in the sidecar E2E repo. Only used if CSI_PROW_SIDECAR_E2E_IMPORT_PATH
# is not set to "none". If empty, all tests in the sidecar repo will be run.
configvar CSI_PROW_SIDECAR_E2E_FOCUS '' "tags for local E2E tests"

# Which external-snapshotter tag to use for the snapshotter CRD and snapshot-controller deployment
default_csi_snapshotter_version () {
if [ "${CSI_PROW_KUBERNETES_VERSION}" = "latest" ] || [ "${CSI_PROW_DRIVER_CANARY}" = "canary" ]; then
Expand Down Expand Up @@ -1328,8 +1332,8 @@ main () {
if sidecar_tests_enabled; then
if ! run_e2e local \
-focus="some regex"; then
warn "Local e2e tests failed"
-focus="${CSI_PROW_SIDECAR_E2E_FOCUS}"; then
warn "E2E sidecar failed"
ret=1
fi
fi
Expand Down

0 comments on commit 8726d46

Please sign in to comment.