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

Bug: b/69133815
Test: build/soong/diff_build_graphs.sh \
      'build/soong:work^' 'build/soong:work'

Change-Id: Iaeb66ba53e1b3d7ddd4b4551b3ac29b12ce227c5
This commit is contained in:
Jeff Gaston 2017-11-28 16:58:37 -08:00
parent 5313911912
commit 0c573d383d
1 changed files with 1 additions and 1 deletions

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"