Merge pull request #73768 from mattjmcnaughton/mattjmcnaughton/support-what-subdirs-for-test

Support make test WHAT=path/to/pkg/...
pull/564/head
Kubernetes Prow Robot 2019-02-07 09:10:17 -08:00 committed by GitHub
commit 22b74dc67b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -223,6 +223,10 @@ verifyAndSuggestPackagePath() {
local original_package_path="$3"
local suggestion_package_path="$4"
if [[ "${specified_package_path}" =~ '/...'$ ]]; then
specified_package_path=${specified_package_path::-4}
fi
if ! [ -d "${specified_package_path}" ]; then
# Because k8s sets a localized $GOPATH for testing, seeing the actual
# directory can be confusing. Instead, just show $GOPATH if it exists in the