mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-01 15:58:37 +00:00
turn on race detector by default
This commit is contained in:
parent
e13e31866d
commit
0a97e514b3
@ -39,10 +39,10 @@ find_test_dirs() {
|
||||
cd "${KUBE_TARGET}"
|
||||
|
||||
if [ "$1" != "" ]; then
|
||||
go test -cover -coverprofile="tmp.out" "$KUBE_GO_PACKAGE/$1"
|
||||
go test -race -cover -coverprofile="tmp.out" "$KUBE_GO_PACKAGE/$1"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
for package in $(find_test_dirs); do
|
||||
go test -cover -coverprofile="tmp.out" "${KUBE_GO_PACKAGE}/${package}"
|
||||
go test -race -cover -coverprofile="tmp.out" "${KUBE_GO_PACKAGE}/${package}"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user