From 817e8cd898429f409a6ccd76bfbbfd8f2c67f53c Mon Sep 17 00:00:00 2001 From: Patrick Ohly Date: Mon, 29 Dec 2025 18:28:59 +0100 Subject: [PATCH] make test: fix support for PARALLEL There was an env variable PARALLEL and a -p command line flag, but the value then wasn't passed on to "go test". The new default is to not set any explicit parallelism, which matches the prior (accidental?) behavior of ignoring PARALLEL. --- hack/make-rules/test.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh index 7d8e5664a1d..64a16b8fa67 100755 --- a/hack/make-rules/test.sh +++ b/hack/make-rules/test.sh @@ -101,7 +101,7 @@ isnum() { [[ "$1" =~ ^[0-9]+$ ]] } -PARALLEL="${PARALLEL:-1}" +PARALLEL="${PARALLEL:--1}" while getopts "hp:i:" opt ; do case ${opt} in h) @@ -175,6 +175,10 @@ if [[ -n "${KUBE_RACE}" ]] ; then goflags+=("${KUBE_RACE}") fi +if [[ "${PARALLEL}" -gt 0 ]]; then + goflags+=(-p "${PARALLEL}") +fi + junitFilenamePrefix() { if [[ -z "${KUBE_JUNIT_REPORT_DIR}" ]]; then echo ""