cov-diff: better handle the case where a file stops having coverage

This commit is contained in:
Nick Mathewson 2019-02-08 11:22:55 -05:00
parent f4c76661d1
commit a036c0187a

View File

@ -16,6 +16,5 @@ for B in "$DIRB"/*; do
fi
perl -pe 's/^\s*\!*\d+(\*?):/ 1$1:/; s/^([^:]+:)[\d\s]+:/$1/; s/^ *-:(Runs|Programs):.*//;' "$B" > "$B.tmp"
diff -u "$A.tmp" "$B.tmp" |perl -pe 's/^((?:\+\+\+|---)(?:.*tmp))\s+.*/$1/;'
rm "$A.tmp" "$B.tmp"
rm -f "$A.tmp" "$B.tmp"
done