Merge pull request #75751 from BenTheElder/bash-fun

fix kube::golang::is_instrumented_package
This commit is contained in:
Kubernetes Prow Robot
2019-03-26 23:19:01 -07:00
committed by GitHub

View File

@@ -496,7 +496,8 @@ kube::golang::outfile_for_binary() {
# Returns 0 if the binary can be built with coverage, 1 otherwise.
# NB: this ignores whether coverage is globally enabled or not.
kube::golang::is_instrumented_package() {
return "$(kube::util::array_contains "$1" "${KUBE_COVERAGE_INSTRUMENTED_PACKAGES[@]}")"
kube::util::array_contains "$1" "${KUBE_COVERAGE_INSTRUMENTED_PACKAGES[@]}"
return $?
}
# Argument: the name of a Kubernetes package (e.g. k8s.io/kubernetes/cmd/kube-scheduler)