From ea46ee99222a92828c085594aca4466bb1ef07b4 Mon Sep 17 00:00:00 2001 From: Jonathan West Date: Tue, 18 Jun 2024 18:24:29 -0400 Subject: [PATCH] Fail rollouts e2e script on test failure (#736) Signed-off-by: Jonathan West --- scripts/run-rollouts-e2e-tests.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/run-rollouts-e2e-tests.sh b/scripts/run-rollouts-e2e-tests.sh index aa2633d04..1f008cc56 100755 --- a/scripts/run-rollouts-e2e-tests.sh +++ b/scripts/run-rollouts-e2e-tests.sh @@ -4,6 +4,8 @@ # - Runs the (cluster-scoped) E2E tests of the Argo Rollouts operator # - Runs the upstream E2E tests from the argo-rollouts repo +set -e + ROLLOUTS_TMP_DIR=$(mktemp -d) cd $ROLLOUTS_TMP_DIR @@ -24,7 +26,7 @@ make test-e2e # Clean up old namespaces created by test # NOTE: remove this once this is handled by 'make test-e2e' in argo-rollouts-manager repo -kubectl delete rolloutmanagers --all -n test-rom-ns-1 +kubectl delete rolloutmanagers --all -n test-rom-ns-1 || true cd "$ROLLOUTS_TMP_DIR/argo-rollouts-manager"