only test command/agent

This commit is contained in:
Alex Dadgar
2016-08-11 18:17:40 -07:00
parent 091d0e3eeb
commit e0bb6b415f

View File

@@ -11,8 +11,9 @@ 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}
$GOBIN test -v -timeout=900s github.com/hashicorp/nomad/command/agent
#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}