mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: run with cpu = 1,2,4
This commit is contained in:
parent
97709b202d
commit
2d21904cfd
6
test
6
test
@ -45,12 +45,12 @@ split=(${NO_RACE_TEST// / })
|
||||
NO_RACE_TEST=${split[@]/#/${REPO_PATH}/}
|
||||
|
||||
echo "Running tests..."
|
||||
go test -timeout 3m ${COVER} $@ ${TEST} --race
|
||||
go test -timeout 3m ${COVER} $@ ${NO_RACE_TEST}
|
||||
go test -timeout 3m ${COVER} $@ ${TEST} --race -cpu 1,2,4
|
||||
go test -timeout 3m ${COVER} $@ ${NO_RACE_TEST} -cpu 1,2,4
|
||||
|
||||
if [ -n "$INTEGRATION" ]; then
|
||||
echo "Running integration tests..."
|
||||
go test -timeout 3m $@ ${REPO_PATH}/integration -v
|
||||
go test -timeout 3m $@ ${REPO_PATH}/integration -v -cpu 1,2,4
|
||||
fi
|
||||
|
||||
echo "Checking gofmt..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user