From 2cf66cfa6ae47c31130e4c0aec59fc75e229b7bb Mon Sep 17 00:00:00 2001 From: jmlrt <8582351+jmlrt@users.noreply.github.com> Date: Thu, 7 Oct 2021 18:00:28 +0200 Subject: [PATCH] [meta] fail make test on error 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 da6b89dc9..eb841e91c 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; \