Skip to content

Commit 17914a3

Browse files
committed
ensure that cleanup() runs if terminated by the user
1 parent 58106a0 commit 17914a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/build_test_env.sh

+1
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ cleanup() {
5959
}
6060
[ -z "${BUILD_TEST_ENV_AUTO_CLEANUP+set}" ] || {
6161
trap cleanup EXIT
62+
trap 'exit 1' HUP INT TERM
6263
}
6364

6465
docker run --name gitlab-test --detach --publish 8080:80 \

0 commit comments

Comments
 (0)