Skip to content
This repository was archived by the owner on May 16, 2023. It is now read-only.

Commit cd9e50c

Browse files
authored
[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 #1385
1 parent 5cfd9f7 commit cd9e50c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

helpers/examples.mk

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
SHELL := /bin/bash
12
GOSS_VERSION := v0.3.6
23
GOSS_FILE ?= goss.yaml
34
GOSS_SELECTOR ?= release=$(RELEASE)
@@ -10,6 +11,7 @@ help: ## Display this help
1011

1112
.PHONY: goss
1213
goss: ## Run goss tests
14+
set -e; \
1315
for i in $$(seq 1 5); do \
1416
if [ -z "$$GOSS_CONTAINER" ]; then \
1517
sleep 5; \

0 commit comments

Comments
 (0)