Output diff on failed yapf sanity

pull/9736/head
Nathaniel Manista 8 years ago
parent 73495e3b35
commit b3a1ec2111
  1. 2
      tools/distrib/yapf_code.sh

@ -53,7 +53,7 @@ for dir in $DIRS; do
tempdir=`mktemp -d`
cp -RT $dir $tempdir
$PYTHON -m yapf -i -r -p $exclusion_args $dir
if ! diff -rq $dir $tempdir; then
if ! diff -r $dir $tempdir; then
script_result=1
fi
rm -rf $tempdir

Loading…
Cancel
Save