From 76b9e257e3fdc45760aa74904b4769611cd5d1a5 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 4a667fe75a..30235a500d 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