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

Commit

Permalink
[meta] fail make test on error (elastic#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 elastic#1385
  • Loading branch information
jmlrt committed Oct 7, 2021
1 parent a611e8e commit b9343dc
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 b9343dc

Please sign in to comment.