mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
Merge pull request #359 from smarterclayton/allow_test_opts
Allow hack/test-go.sh to support flags
This commit is contained in:
commit
d205065284
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user