mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 22:46:12 +00:00
Merge pull request #23072 from timstclair/test-isolation
Auto commit by PR queue bot
This commit is contained in:
commit
865d233aba
@ -29,13 +29,19 @@ BADSYMBOLS=(
|
|||||||
"testify"
|
"testify"
|
||||||
"testing[.]"
|
"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 "${PATTERN}"; then
|
SYMBOLS="$(nm ${KUBE_OUTPUT_HOSTBIN}/hyperkube)"
|
||||||
echo "output binaries contain bad symbols"
|
|
||||||
exit 1
|
RESULT=0
|
||||||
fi
|
for BADSYMBOL in "${BADSYMBOLS[@]}"; do
|
||||||
|
if FOUND=$(echo "$SYMBOLS" | grep "$BADSYMBOL"); then
|
||||||
|
echo "Found bad symbol '${BADSYMBOL}':"
|
||||||
|
echo "$FOUND"
|
||||||
|
RESULT=1
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
exit $RESULT
|
||||||
|
|
||||||
# ex: ts=2 sw=2 et filetype=sh
|
# ex: ts=2 sw=2 et filetype=sh
|
||||||
|
Loading…
Reference in New Issue
Block a user