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`).
This commit is contained in:
Sean Chittenden 2016-02-18 19:42:06 -08:00
parent 2949980a64
commit 12c2fefee3
1 changed files with 1 additions and 1 deletions

View File

@ -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:-}