Add -cpu 4 to tests.

This commit is contained in:
Tom Wilkie
2015-07-06 13:06:23 +00:00
parent 0043e9f37d
commit d2d73c3cd4
5 changed files with 34 additions and 27 deletions

View File

@@ -2,10 +2,10 @@
set -eu
GO_TEST_ARGS=""
GO_TEST_ARGS="-cpu 4 -timeout 10s -tags netgo"
SLOW=""
if [ $# -eq 1 ] && [ "$1" = "-slow" ]; then
GO_TEST_ARGS="-race -covermode=atomic"
GO_TEST_ARGS="$GO_TEST_ARGS -race -covermode=atomic"
SLOW="yes"
fi
@@ -26,7 +26,7 @@ for dir in $(find . -type f -name '*_test.go' | grep -v '^./.git/' | grep -v '^
GO_TEST_ARGS_RUN="$GO_TEST_ARGS"
fi
if ! go test $GO_TEST_ARGS_RUN -timeout 10s -tags netgo $dir ; then
if ! go test $GO_TEST_ARGS_RUN $dir ; then
fail=1
fi