Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
865d233a
Commit
865d233a
authored
Mar 16, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #23072 from timstclair/test-isolation
Auto commit by PR queue bot
parents
62c73732
dcd94aa1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
6 deletions
+12
-6
verify-symbols.sh
hack/after-build/verify-symbols.sh
+12
-6
No files found.
hack/after-build/verify-symbols.sh
View file @
865d233a
...
@@ -29,13 +29,19 @@ BADSYMBOLS=(
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment