From c76361bd992e6679763adae8cb1146679f049c88 Mon Sep 17 00:00:00 2001 From: AhmedGrati Date: Sun, 15 Oct 2023 00:01:27 +0100 Subject: [PATCH] fix: add exit on error for e2e tests Signed-off-by: AhmedGrati --- script/test/cmd/tests_new.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/test/cmd/tests_new.sh b/script/test/cmd/tests_new.sh index 6891d49a..2f37da42 100755 --- a/script/test/cmd/tests_new.sh +++ b/script/test/cmd/tests_new.sh @@ -107,6 +107,9 @@ convert::expect_warning "$cmd" "Push image registry 'whatever' is specified but convert::check_artifacts_generated "kompose -f $KOMPOSE_ROOT/script/test/fixtures/storage-class-name/docker-compose.yml convert -o $TEMP_DIR/output-k8s.yaml" "$TEMP_DIR/output-k8s.yaml" convert::check_artifacts_generated "kompose --provider=openshift -f $KOMPOSE_ROOT/script/test/fixtures/storage-class-name/docker-compose.yml convert -o $TEMP_DIR/output-os.yaml -j" "$TEMP_DIR/output-os.yaml" +# Exit on error +set -e + # TEST the windows volume # windows host path to windows container k8s_cmd="kompose -f $KOMPOSE_ROOT/script/test/fixtures/volume-mounts/windows/docker-compose.yaml convert --stdout --with-kompose-annotation=false"