diff options
author | Nick Mathewson <nickm@torproject.org> | 2018-05-22 08:42:04 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2018-05-22 08:42:04 -0400 |
commit | add00045aa56c77b93b1fb4b3cf424588a7baf0e (patch) | |
tree | 80f1d0fbdfa0dc9b9a500aa111d5dd96849d6a3c /scripts | |
parent | 87a7748a8489160ffce966e663dc1e25de1c734e (diff) | |
parent | db94d7fed246e617fe953751a8f506f9b57c2fda (diff) | |
download | tor-add00045aa56c77b93b1fb4b3cf424588a7baf0e.tar.gz tor-add00045aa56c77b93b1fb4b3cf424588a7baf0e.zip |
Merge branch 'bug26101_26102'
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/test/cov-diff | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/test/cov-diff b/scripts/test/cov-diff index ed8874d2d3..6179dff63e 100755 --- a/scripts/test/cov-diff +++ b/scripts/test/cov-diff @@ -10,12 +10,12 @@ DIRB="$2" for B in $DIRB/*; do A=$DIRA/`basename $B` if [ -f $A ]; then - perl -pe 's/^\s*\!*\d+:/ 1:/; s/^([^:]+:)[\d\s]+:/$1/; s/^ *-:(Runs|Programs):.*//;' "$A" > "$A.tmp" + perl -pe 's/^\s*\!*\d+(\*?):/ 1$1:/; s/^([^:]+:)[\d\s]+:/$1/; s/^ *-:(Runs|Programs):.*//;' "$A" > "$A.tmp" else cat /dev/null > "$A.tmp" fi - perl -pe 's/^\s*\!*\d+:/ 1:/; s/^([^:]+:)[\d\s]+:/$1/; s/^ *-:(Runs|Programs):.*//;' "$B" > "$B.tmp" - diff -u "$A.tmp" "$B.tmp" + 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" done |