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

Commit

Permalink
[meta] fail make test on error (#1386)
Browse files Browse the repository at this point in the history
This commit fix the make test target to fail with the proper exit code
if a shell command is failing.

Fix #1385
  • Loading branch information
jmlrt authored Oct 7, 2021
1 parent 5cfd9f7 commit cd9e50c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions helpers/examples.mk
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
SHELL := /bin/bash
GOSS_VERSION := v0.3.6
GOSS_FILE ?= goss.yaml
GOSS_SELECTOR ?= release=$(RELEASE)
Expand All @@ -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; \
Expand Down

0 comments on commit cd9e50c

Please sign in to comment.