mirror of https://github.com/status-im/consul.git
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:
parent
f6ffbf4e96
commit
fb0bfcc3cf
|
@ -12,4 +12,4 @@ go build -o $TEMPDIR/consul || exit 1
|
||||||
|
|
||||||
# Run the tests
|
# Run the tests
|
||||||
echo "--> Running 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:-}
|
||||||
|
|
Loading…
Reference in New Issue