Skip to content

Commit

Permalink
tear down docker when tests fail
Browse files Browse the repository at this point in the history
  • Loading branch information
dholms committed May 14, 2024
1 parent 1f3c41a commit df280d1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/dev-infra/_common.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
#!/usr/bin/env sh

# Exit if any command fails
set -e

get_container_id() {
local compose_file=$1
local service=$2
Expand Down Expand Up @@ -59,6 +56,9 @@ redis_clear() {
}

main_native() {
# Exit if any command fails
set -e

local services=${SERVICES}
local postgres_url_env_var=`[[ $services == *"db_test"* ]] && echo "DB_TEST_POSTGRES_URL" || echo "DB_POSTGRES_URL"`
local redis_host_env_var=`[[ $services == *"redis_test"* ]] && echo "REDIS_TEST_HOST" || echo "REDIS_HOST"`
Expand Down

0 comments on commit df280d1

Please sign in to comment.