From 2d21904cfd817a9c1e6f1c2f4f0974632e90fe3d Mon Sep 17 00:00:00 2001 From: Xiang Li Date: Wed, 10 Jun 2015 14:26:17 -0700 Subject: [PATCH] test: run with cpu = 1,2,4 --- test | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test b/test index 183cd739d..5e0a82f3d 100755 --- a/test +++ b/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..."