From 1e6c04ccfad8b2d277a2b2c8cbd6fabf69827efc Mon Sep 17 00:00:00 2001 From: Sean Chittenden Date: Mon, 11 Jul 2016 12:31:21 -0700 Subject: [PATCH] Remove xargs(1) from testing and rely on `go test -v`. Tests are approaching 30min largely due to recompiling every package. Out of a ~30min build, only ~5min are actually spent running the tests, the remaining time is spent recompiling. --- scripts/test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/test.sh b/scripts/test.sh index c0638e78e..ae5278831 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -10,4 +10,4 @@ go build -o $TEMPDIR/nomad || exit 1 # Run the tests echo "--> Running tests" -go list ./... | grep -v '/vendor/' | sudo -E PATH=$TEMPDIR:$PATH xargs -n1 go test ${GOTEST_FLAGS:--cover -timeout=900s} +go list ./... | grep -v '/vendor/' | sudo -E PATH=$TEMPDIR:$PATH go test ${GOTEST_FLAGS:--cover -timeout=900s -v}