log if we're running with -race

This commit is contained in:
Benjamin Elder 2021-06-17 22:57:10 -07:00
parent 68d8bcb64f
commit 8942cba24d

View File

@ -253,7 +253,7 @@ runTests() {
# If we're not collecting coverage, run all requested tests with one 'go test'
# command, which is much faster.
if [[ ! ${KUBE_COVER} =~ ^[yY]$ ]]; then
kube::log::status "Running tests without code coverage"
kube::log::status "Running tests without code coverage ${KUBE_RACE:+"and with ${KUBE_RACE}"}"
go test "${goflags[@]:+${goflags[@]}}" \
"${KUBE_TIMEOUT}" "${@}" \
"${testargs[@]:+${testargs[@]}}" \
@ -263,6 +263,8 @@ runTests() {
return ${rc}
fi
kube::log::status "Running tests with code coverage ${KUBE_RACE:+"and with ${KUBE_RACE}"}"
# Create coverage report directories.
if [[ -z "${KUBE_COVER_REPORT_DIR}" ]]; then
cover_report_dir="/tmp/k8s_coverage/$(kube::util::sortable_date)"