diff --git a/.gitlab-ci/bare-metal/poe-powered.sh b/.gitlab-ci/bare-metal/poe-powered.sh index eb9b435e1f3..ae863b8da7f 100755 --- a/.gitlab-ci/bare-metal/poe-powered.sh +++ b/.gitlab-ci/bare-metal/poe-powered.sh @@ -200,7 +200,7 @@ while [ $((ATTEMPTS--)) -gt 0 ]; do --powerup="$BM_POWERUP" \ --powerdown="$BM_POWERDOWN" \ --boot-timeout-seconds ${BOOT_PHASE_TIMEOUT_SECONDS:-300} \ - --test-timeout-minutes ${TEST_PHASE_TIMEOUT_MINUTES:-20} + --test-timeout-minutes ${TEST_PHASE_TIMEOUT_MINUTES:-$((CI_JOB_TIMEOUT/60 - ${TEST_SETUP_AND_UPLOAD_MARGIN_MINUTES:-5}))} ret=$? if [ $ret -eq 2 ]; then