From 3c44b86ad654c6b7b5b137d5377f97b4ea6e9214 Mon Sep 17 00:00:00 2001 From: Benjamin Elder Date: Thu, 17 Jun 2021 11:52:18 -0700 Subject: [PATCH] enable race detector by default in make test --- hack/make-rules/test.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/hack/make-rules/test.sh b/hack/make-rules/test.sh index 21cd65c4922..acdce78a57a 100755 --- a/hack/make-rules/test.sh +++ b/hack/make-rules/test.sh @@ -71,7 +71,10 @@ KUBE_COVER_REPORT_DIR="${KUBE_COVER_REPORT_DIR:-}" # How many 'go test' instances to run simultaneously when running tests in # coverage mode. KUBE_COVERPROCS=${KUBE_COVERPROCS:-4} -KUBE_RACE=${KUBE_RACE:-} # use KUBE_RACE="-race" to enable race testing +# use KUBE_RACE="" to disable the race detector +# this is defaulted to "-race" in make test as well +# NOTE: DO NOT ADD A COLON HERE. KUBE_RACE="" is meaningful! +KUBE_RACE=${KUBE_RACE-"-race"} # Set to the goveralls binary path to report coverage results to Coveralls.io. KUBE_GOVERALLS_BIN=${KUBE_GOVERALLS_BIN:-} # once we have multiple group supports