Skip to content

Commit

Permalink
fix(tests): define timeout for cleanup
Browse files Browse the repository at this point in the history
Related to #7488
  • Loading branch information
nqb committed Mar 22, 2023
1 parent b0a427d commit 42d0607
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ stages:
variables:
# synced with Pipeline timeout in GitLab UI
PIPELINE_TIMEOUT_SCRIPT: 160m
PIPELINE_TIMEOUT_CLEANUP: 10m
BUILD_PFAPPSERVER_VUE: "yes"
PFBUILD_CENTOS_8_IMG: ghcr.io/inverse-inc/packetfence/pfbuild-centos-8
PFBUILD_DEB_BULLSEYE_IMG: ghcr.io/inverse-inc/packetfence/pfbuild-debian-bullseye
Expand Down Expand Up @@ -565,7 +566,7 @@ variables:
script:
# || EXIT_CODE=$? prevents script to finish at first command
- timeout ${PIPELINE_TIMEOUT_SCRIPT} make -e -C ${TESTDIR} MAKE_TARGET=run ${CI_JOB_NAME} || EXIT_CODE=$?
- JOB_STATUS=$EXIT_CODE ${TESTCIDIR}/clean-test-environment.sh
- timeout ${PIPELINE_TIMEOUT_CLEANUP} JOB_STATUS=$EXIT_CODE ${TESTCIDIR}/clean-test-environment.sh

################################################################################
# JOBS
Expand Down

0 comments on commit 42d0607

Please sign in to comment.