mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
Merge pull request #5136 from heyitsanthony/test-display-gosimple
test: display failure output for gosimple
This commit is contained in:
commit
0c40f4a7e3
2
test
2
test
@ -115,7 +115,7 @@ function fmt_tests {
|
||||
if which gosimple >/dev/null; then
|
||||
echo "gosimple is installed..."
|
||||
for path in $GOSIMPLE_UNUSED_PATHS; do
|
||||
simplResult=$(gosimple $REPO_PATH/${path})
|
||||
simplResult=`gosimple $REPO_PATH/${path} || true`
|
||||
if [ -n "${simplResult}" ]; then
|
||||
echo -e "gosimple checking ${path} failed:\n${simplResult}"
|
||||
exit 255
|
||||
|
Loading…
x
Reference in New Issue
Block a user