mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
test: mask go1.8 gosimple warnings
This commit is contained in:
parent
781196fa87
commit
a9588952a0
13
test
13
test
@ -235,10 +235,17 @@ function fmt_pass {
|
||||
|
||||
if which gosimple >/dev/null; then
|
||||
echo "Checking gosimple..."
|
||||
simplResult=`gosimple ${STATIC_ANALYSIS_PATHS} 2>&1 || true`
|
||||
if [ -n "${simplResult}" ]; then
|
||||
echo -e "gosimple checking failed:\n${simplResult}"
|
||||
gosimpleResult=`gosimple ${STATIC_ANALYSIS_PATHS} 2>&1 || true`
|
||||
if [ ! -n "${gosimpleResult}" ]; then
|
||||
continue
|
||||
fi
|
||||
# TODO: resolve these after go1.8 migration
|
||||
SIMPLE_CHECK_MASK="S(1024)"
|
||||
if egrep -v "$SIMPLE_CHECK_MASK" "${gosimpleResult}"; then
|
||||
echo -e "gosimple checking ${path} failed:\n${gosimpleResult}"
|
||||
exit 255
|
||||
else
|
||||
echo -e "gosimple warning:\n${gosimpleResult}"
|
||||
fi
|
||||
else
|
||||
echo "Skipping gosimple..."
|
||||
|
Loading…
x
Reference in New Issue
Block a user