From 6ec511a9f9c4a45af50423c1da7eb61c6b85aabe Mon Sep 17 00:00:00 2001 From: Daniel Holmgren Date: Tue, 14 May 2024 11:56:53 -0500 Subject: [PATCH] Tear down docker when tests fail (#2489) * add set +e before docker cmd * add comment * tidy --- packages/dev-infra/_common.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/dev-infra/_common.sh b/packages/dev-infra/_common.sh index 2759dec2d02..7cedcc7f63e 100755 --- a/packages/dev-infra/_common.sh +++ b/packages/dev-infra/_common.sh @@ -156,6 +156,9 @@ main_docker() { echo "all services ${services} are already running" fi + # do not exit when following commands fail, so we can intercept exit code & tear down docker + set +e + # setup environment variables and run args export_env "$@"