diff --git a/acceptance/bundle/resources/postgres_branches/without_branch_id/script b/acceptance/bundle/resources/postgres_branches/without_branch_id/script index 112f4071ad..4e03eb0ba2 100755 --- a/acceptance/bundle/resources/postgres_branches/without_branch_id/script +++ b/acceptance/bundle/resources/postgres_branches/without_branch_id/script @@ -1,5 +1,10 @@ envsubst < databricks.yml.tmpl > databricks.yml +cleanup() { + $CLI bundle destroy --auto-approve > /dev/null 2>&1 || true +} +trap cleanup EXIT + trace $CLI bundle validate # Deploy output differs between engines, so capture to per-engine file only diff --git a/acceptance/bundle/resources/postgres_endpoints/without_endpoint_id/script b/acceptance/bundle/resources/postgres_endpoints/without_endpoint_id/script index 112f4071ad..4e03eb0ba2 100755 --- a/acceptance/bundle/resources/postgres_endpoints/without_endpoint_id/script +++ b/acceptance/bundle/resources/postgres_endpoints/without_endpoint_id/script @@ -1,5 +1,10 @@ envsubst < databricks.yml.tmpl > databricks.yml +cleanup() { + $CLI bundle destroy --auto-approve > /dev/null 2>&1 || true +} +trap cleanup EXIT + trace $CLI bundle validate # Deploy output differs between engines, so capture to per-engine file only