turn on race detector by default

This commit is contained in:
Nan Deng 2014-07-02 17:35:38 -07:00
parent e13e31866d
commit 0a97e514b3

View File

@ -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