From d60546e69d3578c98a27da2632ea5d05e51cd688 Mon Sep 17 00:00:00 2001 From: Frank Schroeder Date: Thu, 27 Apr 2017 11:17:58 -0700 Subject: [PATCH] build: Do not swallow go test exit code --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 4a667fe75..30235a500 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -42,7 +42,7 @@ cov: test: dev go test -tags "$(GOTAGS)" -i -run '^$$' ./... - go test -tags "$(GOTAGS)" -v $(GOFILES) | tee test.log 2>&1 + ( set -o pipefail ; go test -tags "$(GOTAGS)" -v $(GOFILES) | tee test.log ) cover: go test $(GOFILES) --cover