aboutsummaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorNick Mathewson <nickm@torproject.org>2019-02-08 11:22:55 -0500
committerNick Mathewson <nickm@torproject.org>2019-02-08 11:22:55 -0500
commita036c0187a7938718a1056f45ca95ddbca744b49 (patch)
treedd4f2c08be1d4a60799ac03fcf6312424343d5cc /scripts/test
parentf4c76661d1bb49a47829c6999a07c1de63b55cc9 (diff)
downloadtor-a036c0187a7938718a1056f45ca95ddbca744b49.tar.gz
tor-a036c0187a7938718a1056f45ca95ddbca744b49.zip
cov-diff: better handle the case where a file stops having coverage
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test/cov-diff3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/test/cov-diff b/scripts/test/cov-diff
index f3ca856888..8751800966 100755
--- a/scripts/test/cov-diff
+++ b/scripts/test/cov-diff
@@ -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
-