File tree Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Expand file tree Collapse file tree 1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -137,6 +137,24 @@ if [[ "${GOVC_URL:-}" == "10.2.224.4" ]]; then
137
137
E2E_CONF_OVERRIDE_FILE=" $( pwd) /test/e2e/config/config-overrides-mirror-prow.yaml"
138
138
fi
139
139
140
+ # Ensure vSphere is reachable
141
+ function wait_for_vsphere_reachable() {
142
+ local n=0
143
+ until [ $n -ge 30 ]; do
144
+ curl " https://${VSPHERE_SERVER} " --connect-timeout 2 -k && RET=$? || RET=$?
145
+ if [[ " $RET " -eq 0 ]]; then
146
+ break
147
+ fi
148
+ n=$(( n + 1 ))
149
+ sleep 1
150
+ done
151
+ return " $RET "
152
+ }
153
+ # Only run the boskos/check for IPAM when we need them (not for vcsim)
154
+ if [[ ! " ${GINKGO_FOCUS:- } " =~ $RE_VCSIM ]]; then
155
+ wait_for_vsphere_reachable
156
+ fi
157
+
140
158
# Make tests run in-parallel
141
159
export GINKGO_NODES=5
142
160
You can’t perform that action at this time.
0 commit comments