]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix variant selection in dg-cmp-results.sh
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Wed, 21 Jun 2017 16:20:57 +0000 (16:20 +0000)
committerThomas Preud'homme <thopre01@gcc.gnu.org>
Wed, 21 Jun 2017 16:20:57 +0000 (16:20 +0000)
2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>

    contrib/
    * dg-cmp-results.sh: Restore filtering on target variant.

From-SVN: r249463

contrib/ChangeLog
contrib/dg-cmp-results.sh

index 180b6f343404979a8a189196a2e2ba7b6b585219..51adaaa178f225cfc1069ab46d273e3a772894c6 100644 (file)
@@ -1,3 +1,7 @@
+2017-06-21  Thomas Preud'homme  <thomas.preudhomme@arm.com>
+
+       * dg-cmp-results.sh: Restore filtering on target variant.
+
 2017-06-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
 
        * dg-cmp-results.sh: Keep test result lines rather than throwing
index 921e9337d1f8ffea78ef566c351fb48a8f6ca064..5f2fed5ec3ff0c66d22bc07c84571568730fbcac 100755 (executable)
@@ -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$//' \