Merge pull request #3956 from mitake/test-gofmt

test: print diff with gofmt
This commit is contained in:
Xiang Li 2015-12-03 17:22:14 -08:00
commit 769f874542

2
test
View File

@ -61,7 +61,7 @@ if [ -n "$INTEGRATION" ]; then
fi
echo "Checking gofmt..."
fmtRes=$(gofmt -l -s $FMT)
fmtRes=$(gofmt -l -s -d $FMT)
if [ -n "${fmtRes}" ]; then
echo -e "gofmt checking failed:\n${fmtRes}"
exit 255