Skip to content

Commit 84e7b69

Browse files
authored
bugfix: Set pipefail when running unit tests to preserve exit code (#5057)
1 parent bdd43f7 commit 84e7b69

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ index-rollover-integration-test: docker-images-elastic
143143

144144
.PHONY: cover
145145
cover: nocover
146-
$(GOTEST) -tags=memory_storage_integration -timeout 5m -coverprofile cover.out ./... | tee test-results.json
146+
bash -c "set -e; set -o pipefail; $(GOTEST) -tags=memory_storage_integration -timeout 5m -coverprofile cover.out ./... | tee test-results.json"
147147
go tool cover -html=cover.out -o cover.html
148148

149149
.PHONY: nocover

0 commit comments

Comments
 (0)