Explorar el Código

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

Nick Mathewson hace 6 años
padre
commit
a036c0187a
Se han modificado 1 ficheros con 1 adiciones y 2 borrados
  1. 1 2
      scripts/test/cov-diff

+ 1 - 2
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
-