From fb0bfcc3cfd59c5d88b624cfd34f0580bd76a02b Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Thu, 18 Feb 2016 19:42:06 -0800 Subject: [PATCH] Introduce GOTEST_FLAGS to conditionally add -v to go test Trivial change that makes it possible for developers to set an environment variable and change the output of `go test` to be detailed (i.e. `GOTEST_FLAGS=-v`). --- scripts/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test.sh b/scripts/test.sh index b1ee7add71..a892469f09 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -12,4 +12,4 @@ go build -o $TEMPDIR/consul || exit 1 # Run the tests echo "--> Running tests" -go list ./... | grep -v ^github.com/hashicorp/consul/vendor/ | PATH=$TEMPDIR:$PATH xargs -n1 go test +go list ./... | grep -v ^github.com/hashicorp/consul/vendor/ | PATH=$TEMPDIR:$PATH xargs -n1 go test ${GOTEST_FLAGS:-}