From ce418afa1d3098603e26e1fd2ee262a8ab72e5ab Mon Sep 17 00:00:00 2001
From: Paul Iannetta <piannetta@kalrayinc.com>
Date: Tue, 24 Oct 2023 09:48:42 +0200
Subject: [PATCH] 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:
2023-10-24 Paul Iannetta <piannetta@kalrayinc.com>
* dg-extract-results.py: Make the test_run regex case
insensitive.
---
contrib/dg-extract-results.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
@@ -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'
--
2.35.1.500.gb896f729e2