Skip to content

Commit 77af130

Browse files
authored
Fail rollouts e2e script on test failure (redhat-developer#736)
Signed-off-by: Jonathan West <[email protected]>
1 parent f0d8dbc commit 77af130

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/run-rollouts-e2e-tests.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
# - Runs the (cluster-scoped) E2E tests of the Argo Rollouts operator
55
# - Runs the upstream E2E tests from the argo-rollouts repo
66

7+
set -e
8+
79
ROLLOUTS_TMP_DIR=$(mktemp -d)
810

911
cd $ROLLOUTS_TMP_DIR
@@ -24,7 +26,7 @@ make test-e2e
2426

2527
# Clean up old namespaces created by test
2628
# NOTE: remove this once this is handled by 'make test-e2e' in argo-rollouts-manager repo
27-
kubectl delete rolloutmanagers --all -n test-rom-ns-1
29+
kubectl delete rolloutmanagers --all -n test-rom-ns-1 || true
2830

2931
cd "$ROLLOUTS_TMP_DIR/argo-rollouts-manager"
3032

0 commit comments

Comments
 (0)