mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-28 17:51:21 +00:00
Add -cpu 4 to tests.
This commit is contained in:
6
bin/test
6
bin/test
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user