diff --git a/hack/test-go.sh b/hack/test-go.sh index 8ed0b51f6a82..a79d321ea9b9 100755 --- a/hack/test-go.sh +++ b/hack/test-go.sh @@ -78,5 +78,8 @@ if [[ -n "${KUBE_COVER}" && -n "${OUTPUT_COVERAGE}" ]]; then fi done else - go test $KUBE_RACE $KUBE_TIMEOUT $KUBE_COVER "${@:2}" $test_packages + # Allow specific tests (e.g. TestRoute1) to be run via make. + # Example: + # make check WHAT=pkg/route/api/validation/ GOFLAGS="-v -run TestRoute1" + go test ${GOFLAGS:-} $KUBE_RACE $KUBE_TIMEOUT $KUBE_COVER "${@:2}" $test_packages fi