]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
dg-extract-results.py: Ignore case in header line
authorPaul Iannetta <piannetta@kalrayinc.com>
Tue, 24 Oct 2023 07:48:42 +0000 (09:48 +0200)
committerPaul Iannetta <piannetta@kalrayinc.com>
Thu, 11 Jan 2024 16:46:12 +0000 (17:46 +0100)
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.

contrib/dg-extract-results.py

index d67ce4f158f55d3efdb465f20224a0694582d7f6..0fe3c5f15199dae2f9fd704d7f6efae42e81cf29 100644 (file)
@@ -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'