mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-06 18:54:06 +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}"
|
cd "${KUBE_TARGET}"
|
||||||
|
|
||||||
if [ "$1" != "" ]; then
|
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
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
for package in $(find_test_dirs); do
|
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
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user