From 23e3e839718968ee6c8a30f22071264a37eb84c1 Mon Sep 17 00:00:00 2001 From: Julien Mailleret <8582351+jmlrt@users.noreply.github.com> Date: Thu, 7 Oct 2021 18:36:08 +0200 Subject: [PATCH] [meta] fail make test on error (#1386) This commit fix the make test target to fail with the proper exit code if a shell command is failing. Fix https://github.com/elastic/helm-charts/issues/1385 --- helpers/examples.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/helpers/examples.mk b/helpers/examples.mk index a53ec95bc..7801f1928 100644 --- a/helpers/examples.mk +++ b/helpers/examples.mk @@ -1,3 +1,4 @@ +SHELL := /bin/bash GOSS_VERSION := v0.3.6 GOSS_FILE ?= goss.yaml GOSS_SELECTOR ?= release=$(RELEASE) @@ -10,6 +11,7 @@ help: ## Display this help .PHONY: goss goss: ## Run goss tests + set -e; \ for i in $$(seq 1 5); do \ if [ -z "$$GOSS_CONTAINER" ]; then \ sleep 5; \