mirror of
https://github.com/kemko/nomad.git
synced 2026-01-05 01:45:44 +03:00
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.
This commit is contained in:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user