mirror of
https://github.com/gcc-mirror/gcc.git
synced 2024-11-21 13:40:47 +00:00
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.
This commit is contained in:
parent
887e3a1c5d
commit
8f67953d01
@ -113,7 +113,8 @@ class Prog:
|
|||||||
# Whether to create .sum rather than .log output.
|
# Whether to create .sum rather than .log output.
|
||||||
self.do_sum = True
|
self.do_sum = True
|
||||||
# Regexps used while parsing.
|
# 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.tool_re = re.compile (r'^\t\t=== (.*) tests ===$')
|
||||||
self.result_re = re.compile (r'^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED'
|
self.result_re = re.compile (r'^(PASS|XPASS|FAIL|XFAIL|UNRESOLVED'
|
||||||
r'|WARNING|ERROR|UNSUPPORTED|UNTESTED'
|
r'|WARNING|ERROR|UNSUPPORTED|UNTESTED'
|
||||||
|
Loading…
Reference in New Issue
Block a user