Commit a1fcccd8 authored by k8s-merge-robot's avatar k8s-merge-robot

Merge pull request #23016 from timstclair/test-isolation

Auto commit by PR queue bot
parents 5044c769 a93b67fe
...@@ -24,11 +24,17 @@ source "${KUBE_ROOT}/hack/lib/init.sh" ...@@ -24,11 +24,17 @@ source "${KUBE_ROOT}/hack/lib/init.sh"
kube::golang::setup_env kube::golang::setup_env
# add other BADSYMBOLS here. # add other BADSYMBOLS here.
BADSYMBOLS="testing[.]" BADSYMBOLS=(
"httptest"
"testify"
"testing[.]"
)
# Join symbols with OR '\|' pattern
PATTERN="$(printf '\|%s' "${BADSYMBOLS[@]}" | tail -c +3)"
# b/c hyperkube binds everything simply check that for bad symbols # b/c hyperkube binds everything simply check that for bad symbols
if [[ $(nm ${KUBE_OUTPUT_HOSTBIN}/hyperkube | grep "${BADSYMBOLS}") ]]; then if nm ${KUBE_OUTPUT_HOSTBIN}/hyperkube | grep "${PATTERN}"; then
echo "output binaries contain bad symbols \"${BADSYMBOLS}\"" echo "output binaries contain bad symbols"
exit 1 exit 1
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment