Make verify-conformance-requirements use new setup_env

This commit is contained in:
Tim Hockin 2023-12-11 08:49:16 -08:00
parent 08622aa685
commit 3be358ecc1
No known key found for this signature in database

View File

@ -27,12 +27,13 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
source "${KUBE_ROOT}/hack/lib/util.sh" source "${KUBE_ROOT}/hack/lib/util.sh"
kube::golang::verify_go_version kube::golang::verify_go_version
kube::golang::new::setup_env
cd "${KUBE_ROOT}" cd "${KUBE_ROOT}"
errors=() errors=()
# Check conformance tests follow the requirements as https://git.k8s.io/community/contributors/devel/sig-architecture/conformance-tests.md#conformance-test-requirements # Check conformance tests follow the requirements as https://git.k8s.io/community/contributors/devel/sig-architecture/conformance-tests.md#conformance-test-requirements
if ! failedLint=$(GO111MODULE=on GOPROXY=off go run hack/conformance/check_conformance_test_requirements.go "${KUBE_ROOT}"/test/e2e/) if ! failedLint=$(GOPROXY=off go run hack/conformance/check_conformance_test_requirements.go "${KUBE_ROOT}"/test/e2e/)
then then
errors+=( "${failedLint}" ) errors+=( "${failedLint}" )
fi fi