Use anchored regexp for filtering vendored tests

This commit is contained in:
Sean Chittenden
2016-07-12 02:15:42 -04:00
parent b0fa994692
commit 3ff6f63ad7

View File

@@ -11,7 +11,7 @@ go build -o $TEMPDIR/nomad || exit 1
# Run the tests
echo "--> Running tests"
GOBIN="`which go`"
go list ./... | grep -v '/vendor/' | \
go list ./... | grep -v '^github.com/hashicorp/nomad/vendor/' | \
sudo \
-E PATH=$TEMPDIR:$PATH \
-E GOPATH=$GOPATH \