Merge "Have diff_build_graphs.sh print the number of lines in the diff"

This commit is contained in:
Treehugger Robot 2017-12-05 02:04:29 +00:00 committed by Gerrit Code Review
commit 7c25d88e6b

View file

@ -120,7 +120,7 @@ function diffProduct() {
diff -r "$unzipped1" "$unzipped2" -x build_date.txt -x build_number.txt -x '\.*' -x '*.log' -x build_fingerprint.txt -x build.ninja.d -x '*.zip' > $diffFile || true
if [[ -s "$diffFile" ]]; then
# outputs are different, so remove the unzipped versions but keep the zipped versions
echo "Some differences for product $product:"
echo "First few differences (total diff linecount=$(wc -l $diffFile)) for product $product:"
cat "$diffFile" | head -n 10
echo "End of differences for product $product"
rm -rf "$unzipped1" "$unzipped2"