From e0759ecafccc544497866633f8d4cbbb62750dcc Mon Sep 17 00:00:00 2001 From: preetapan Date: Wed, 21 Jun 2017 16:47:08 -0500 Subject: [PATCH] make test should fail fast on test compilation errors (#3172) --- GNUmakefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index 0d39e0c08..cf5a8813b 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -47,7 +47,8 @@ cov: open /tmp/coverage.html test: dev - go test -tags "$(GOTAGS)" -i -run '^$$' ./... + go test -tags "$(GOTAGS)" -i ./... + go test -tags "$(GOTAGS)" -run '^$$' ./... > /dev/null go test -tags "$(GOTAGS)" -v $$(go list ./... | egrep -v '(agent/consul|vendor)') > test.log 2>&1 || echo 'FAIL_TOKEN' >> test.log go test -tags "$(GOTAGS)" -v $$(go list ./... | egrep '(agent/consul)') >> test.log 2>&1 || echo 'FAIL_TOKEN' >> test.log @if [ "$$TRAVIS" == "true" ] ; then cat test.log ; fi