From fb855a926dc4d293d2b95d45402e74b3c2b8a5db Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Tue, 16 Aug 2016 12:32:29 -0700 Subject: [PATCH] change test script --- scripts/test.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/scripts/test.sh b/scripts/test.sh index b9cde8b9a..8e9622781 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -11,8 +11,6 @@ go build -o $TEMPDIR/nomad || exit 1 # Run the tests echo "--> Running tests" GOBIN="`which go`" -go list ./... | grep -v '^github.com/hashicorp/nomad/vendor/' | \ - sudo \ - -E PATH=$TEMPDIR:$PATH \ - -E GOPATH=$GOPATH \ - xargs $GOBIN test -v ${GOTEST_FLAGS:--cover -timeout=900s} +sudo -E PATH=$TEMPDIR:$PATH -E GOPATH=$GOPATH \ + $GOBIN test -v ${GOTEST_FLAGS:--cover -timeout=900s} $($GOBIN list ./... | grep -v /vendor/) +