mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-21 10:51:29 +00:00
log if we're running with -race
This commit is contained in:
parent
68d8bcb64f
commit
8942cba24d
@ -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)"
|
||||
|
Loading…
Reference in New Issue
Block a user