[gcc r14-7145] dg-extract-results.py: Ignore case in header line

Paul Iannetta piannetta@gcc.gnu.org
Thu Jan 11 16:47:34 GMT 2024


https://gcc.gnu.org/g:8f67953d0198fe9e053cc925eb631d2f29005466

commit r14-7145-g8f67953d0198fe9e053cc925eb631d2f29005466
Author: Paul Iannetta <piannetta@kalrayinc.com>
Date:   Tue Oct 24 09:48:42 2023 +0200

    dg-extract-results.py: Ignore case in header line
    
    DejaGNU changed its header line from "Test Run By" to "Test run by"
    around 2016.  This patch makes it so that both alternatives are
    correcly detected.
    
    contrib/ChangeLog:
    
            * dg-extract-results.py: Make the test_run regex case
            insensitive.

Diff:
---
 contrib/dg-extract-results.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/contrib/dg-extract-results.py b/contrib/dg-extract-results.py
index d67ce4f158f..0fe3c5f1519 100644
--- a/contrib/dg-extract-results.py
+++ b/contrib/dg-extract-results.py
@@ -113,7 +113,8 @@ class Prog:
         # Whether to create .sum rather than .log output.
         self.do_sum = True
         # Regexps used while parsing.
-        self.test_run_re = re.compile (r'^Test run by (\S+) on (.*)$')
+        self.test_run_re = re.compile (r'^Test run by (\S+) on (.*)$',
+                                       re.IGNORECASE)
         self.tool_re = re.compile (r'^\t\t=== (.*) tests ===$')
         self.result_re = re.compile (r'^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED'
                                      r'|WARNING|ERROR|UNSUPPORTED|UNTESTED'


More information about the Gcc-cvs mailing list