Merge pull request #359 from smarterclayton/allow_test_opts

Allow hack/test-go.sh to support flags
This commit is contained in:
Tim Hockin 2014-07-07 09:43:33 -07:00
commit d205065284

View File

@ -39,10 +39,10 @@ find_test_dirs() {
cd "${KUBE_TARGET}" cd "${KUBE_TARGET}"
if [ "$1" != "" ]; then if [ "$1" != "" ]; then
go test -race -cover -coverprofile="tmp.out" "$KUBE_GO_PACKAGE/$1" go test -race -cover -coverprofile="tmp.out" "$KUBE_GO_PACKAGE/$1" "${@:2}"
exit 0 exit 0
fi fi
for package in $(find_test_dirs); do for package in $(find_test_dirs); do
go test -race -cover -coverprofile="tmp.out" "${KUBE_GO_PACKAGE}/${package}" go test -race -cover -coverprofile="tmp.out" "${KUBE_GO_PACKAGE}/${package}" "${@:2}"
done done