]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
cov-diff: better handle the case where a file stops having coverage
authorNick Mathewson <nickm@torproject.org>
Fri, 8 Feb 2019 16:22:55 +0000 (11:22 -0500)
committerNick Mathewson <nickm@torproject.org>
Fri, 8 Feb 2019 16:22:55 +0000 (11:22 -0500)
scripts/test/cov-diff

index f3ca856888b2862455c5eba6e0e082a0886c6ffc..87518009669fe8894667972e933025b5f073a021 100755 (executable)
@@ -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
-