mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-13 06:33:44 +01:00
Merge branch 'bug26101_26102'
This commit is contained in:
commit
add00045aa
5
changes/bug26101_26102
Normal file
5
changes/bug26101_26102
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
o Minor bugfixes (test coverage tools):
|
||||||
|
- Update our "cov-diff" script to handle output from the latest
|
||||||
|
version of gcov, and to remove extraneous timestamp information
|
||||||
|
from its output. Fixes bugs 26101 and 26102; bugfix on
|
||||||
|
0.2.5.1-alpha.
|
@ -10,12 +10,12 @@ DIRB="$2"
|
|||||||
for B in $DIRB/*; do
|
for B in $DIRB/*; do
|
||||||
A=$DIRA/`basename $B`
|
A=$DIRA/`basename $B`
|
||||||
if [ -f $A ]; then
|
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
|
else
|
||||||
cat /dev/null > "$A.tmp"
|
cat /dev/null > "$A.tmp"
|
||||||
fi
|
fi
|
||||||
perl -pe 's/^\s*\!*\d+:/ 1:/; s/^([^:]+:)[\d\s]+:/$1/; s/^ *-:(Runs|Programs):.*//;' "$B" > "$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"
|
diff -u "$A.tmp" "$B.tmp" |perl -pe 's/^((?:\+\+\+|---)(?:.*tmp))\s+.*/$1/;'
|
||||||
rm "$A.tmp" "$B.tmp"
|
rm "$A.tmp" "$B.tmp"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user