From 079090e6e520d6b6acac78f13bd74ef580f3ebdd Mon Sep 17 00:00:00 2001 From: Angus Salkeld Date: Tue, 28 Jun 2016 18:22:17 +0200 Subject: [PATCH] Ignore cmd/libs/go2idl/generator when running coverage --- hack/test-go.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hack/test-go.sh b/hack/test-go.sh index 1586d3f3f85..1bbdfd51ef2 100755 --- a/hack/test-go.sh +++ b/hack/test-go.sh @@ -255,7 +255,9 @@ runTests() { # must make sure the output from parallel runs is not mixed. To achieve this, # we spawn a subshell for each parallel process, redirecting the output to # separate files. - printf "%s\n" "${@}" | xargs -I{} -n1 -P${KUBE_COVERPROCS} \ + # cmd/libs/go2idl/generator is fragile when run under coverage, so ignore it for now. + # see: https://github.com/kubernetes/kubernetes/issues/24967 + printf "%s\n" "${@}" | grep -v "cmd/libs/go2idl/generator"| xargs -I{} -n1 -P${KUBE_COVERPROCS} \ bash -c "set -o pipefail; _pkg=\"{}\"; _pkg_out=\${_pkg//\//_}; \ go test ${goflags[@]:+${goflags[@]}} \ ${KUBE_RACE} \