mirror of
https://github.com/kubernetes/kubernetes.git
synced 2026-02-03 20:40:26 -05:00
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.
This commit is contained in:
parent
3226fe520d
commit
817e8cd898
1 changed files with 5 additions and 1 deletions
|
|
@ -101,7 +101,7 @@ isnum() {
|
||||||
[[ "$1" =~ ^[0-9]+$ ]]
|
[[ "$1" =~ ^[0-9]+$ ]]
|
||||||
}
|
}
|
||||||
|
|
||||||
PARALLEL="${PARALLEL:-1}"
|
PARALLEL="${PARALLEL:--1}"
|
||||||
while getopts "hp:i:" opt ; do
|
while getopts "hp:i:" opt ; do
|
||||||
case ${opt} in
|
case ${opt} in
|
||||||
h)
|
h)
|
||||||
|
|
@ -175,6 +175,10 @@ if [[ -n "${KUBE_RACE}" ]] ; then
|
||||||
goflags+=("${KUBE_RACE}")
|
goflags+=("${KUBE_RACE}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [[ "${PARALLEL}" -gt 0 ]]; then
|
||||||
|
goflags+=(-p "${PARALLEL}")
|
||||||
|
fi
|
||||||
|
|
||||||
junitFilenamePrefix() {
|
junitFilenamePrefix() {
|
||||||
if [[ -z "${KUBE_JUNIT_REPORT_DIR}" ]]; then
|
if [[ -z "${KUBE_JUNIT_REPORT_DIR}" ]]; then
|
||||||
echo ""
|
echo ""
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue