Skip to content

Commit fdda3ae

Browse files
committed
test: increase timeout for OCP tests
1 parent a6f0853 commit fdda3ae

2 files changed

Lines changed: 14 additions & 12 deletions

File tree

test/run-e2e-ocp.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@ main() {
173173
local -i ret=0
174174
local -a extra_args=()
175175
[[ -n "$POSTPONE_RESTORATION" ]] && extra_args+=(--postpone-restoration "$POSTPONE_RESTORATION")
176+
# Increase test timeout when running on OpenShift because more tests are
177+
# executed.
178+
export TEST_TIMEOUT="30m"
176179
./test/run-e2e.sh --no-deploy --ns "$OPERATORS_NS" --ci "${extra_args[@]}" || ret=$?
177180

178181
# NOTE: delete_obo will be automatically called when script exits

test/run-e2e.sh

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ declare NO_BUILDS=false
2121
declare SHOW_USAGE=false
2222
declare LOGS_DIR="tmp/e2e"
2323
declare OPERATORS_NS="operators"
24-
declare TEST_TIMEOUT="15m"
24+
declare TEST_TIMEOUT="${TEST_TIMEOUT:-15m}"
2525
declare RUN_REGEX=""
2626
declare POSTPONE_RESTORATION=""
2727

@@ -359,17 +359,16 @@ reset_env() {
359359
print_config() {
360360
header "Test Configuration"
361361
cat <<-EOF
362-
image repo: $OBO_IMG_REPO
363-
bundle: $BUNDLE_IMG
364-
CI Mode: $CI_MODE
365-
Skip Builds: $NO_BUILDS
366-
Skip Deploy: $NO_DEPLOY
367-
Postpone restoration: ${POSTPONE_RESTORATION:-disabled}
368-
Operator namespace: $OPERATORS_NS
369-
Logs directory: $LOGS_DIR
370-
Run regex: $RUN_REGEX
371-
372-
EOF
362+
image repo: $OBO_IMG_REPO
363+
bundle: $BUNDLE_IMG
364+
CI Mode: $CI_MODE
365+
Skip Builds: $NO_BUILDS
366+
Skip Deploy: $NO_DEPLOY
367+
Postpone restoration: ${POSTPONE_RESTORATION:-disabled}
368+
Operator namespace: $OPERATORS_NS
369+
Logs directory: $LOGS_DIR
370+
Run regex: $RUN_REGEX
371+
EOF
373372
line 50
374373
}
375374

0 commit comments

Comments
 (0)