From cfc4e15177190918377dd01b6b5cfd492017d314 Mon Sep 17 00:00:00 2001 From: Aleksander Mistewicz Date: Fri, 3 Jan 2025 13:59:03 +0100 Subject: [PATCH] Set --parallel to match --cpu flag Otherwise `go test` would execute GOMAXPROCS parallel tests running `--cpu` number of processes (1,2,4) which could starve cpu in some cases. Signed-off-by: Aleksander Mistewicz --- scripts/test.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/test.sh b/scripts/test.sh index 75447c80b00..ca8d6f70acf 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -82,6 +82,7 @@ fi COMMON_TEST_FLAGS=("${RACE}") if [[ -n "${CPU:-}" ]]; then COMMON_TEST_FLAGS+=("--cpu=${CPU}") + COMMON_TEST_FLAGS+=("--parallel=${CPU}") fi log_callout "Running with ${COMMON_TEST_FLAGS[*]}"