From: Thomas Preud'homme Date: Wed, 21 Jun 2017 16:20:57 +0000 (+0000) Subject: Fix variant selection in dg-cmp-results.sh X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1e55769b155009b134665f1455cf937ce30525f8;p=gcc.git Fix variant selection in dg-cmp-results.sh 2017-06-21 Thomas Preud'homme contrib/ * dg-cmp-results.sh: Restore filtering on target variant. From-SVN: r249463 --- diff --git a/contrib/ChangeLog b/contrib/ChangeLog index 180b6f34340..51adaaa178f 100644 --- a/contrib/ChangeLog +++ b/contrib/ChangeLog @@ -1,3 +1,7 @@ +2017-06-21 Thomas Preud'homme + + * dg-cmp-results.sh: Restore filtering on target variant. + 2017-06-20 Thomas Preud'homme * dg-cmp-results.sh: Keep test result lines rather than throwing diff --git a/contrib/dg-cmp-results.sh b/contrib/dg-cmp-results.sh index 921e9337d1f..5f2fed5ec3f 100755 --- a/contrib/dg-cmp-results.sh +++ b/contrib/dg-cmp-results.sh @@ -90,7 +90,7 @@ echo "Newer log file: $NFILE" sed $E -e '/^[[:space:]]+===/,$d' $NFILE # Create a temporary file from the old file's interesting section. -sed $E -e '/^Running target /,/^[[:space:]]+===.*Summary ===/!d' \ +sed $E -e "/$header/,/^[[:space:]]+===.*Summary ===/!d" \ -e '/^[A-Z]+:/!d' \ -e '/^(WARNING|ERROR):/d' \ -e 's/\r$//' \ @@ -100,7 +100,7 @@ sed $E -e '/^Running target /,/^[[:space:]]+===.*Summary ===/!d' \ >/tmp/o$$-$OBASE # Create a temporary file from the new file's interesting section. -sed $E -e '/^Running target /,/^[[:space:]]+===.*Summary ===/!d' \ +sed $E -e "/$header/,/^[[:space:]]+===.*Summary ===/!d" \ -e '/^[A-Z]+:/!d' \ -e '/^(WARNING|ERROR):/d' \ -e 's/\r$//' \