aboutsummaryrefslogtreecommitdiff
path: root/contrib/compare_tests
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/compare_tests')
-rwxr-xr-xcontrib/compare_tests4
1 files changed, 2 insertions, 2 deletions
diff --git a/contrib/compare_tests b/contrib/compare_tests
index a7fc671..bcf678c 100755
--- a/contrib/compare_tests
+++ b/contrib/compare_tests
@@ -22,8 +22,8 @@ if [ "$2" = "" ]; then
exit 2
fi
-sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$1" >$tmp1
-sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$2" >$tmp2
+sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$1" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' >$tmp1
+sed 's/^XFAIL/FAIL/; s/^XPASS/PASS/' < "$2" | awk '/^Running target / {target = $3} { if (target != "unix") { sub(/: /, "&"target": " ); }; print $0; }' >$tmp2
before=$tmp1
now=$tmp2