From 3cf3aeeda2b5774ff6d34a334f737b90a38bc0dd Mon Sep 17 00:00:00 2001 From: Jan Kiene Date: Mon, 4 May 2026 10:42:06 +0200 Subject: [PATCH] relax regex for error parsing some usan errors apparently do not have the "in" at the end --- scripts/parse_sanitizer_errors_from_xml_report.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/scripts/parse_sanitizer_errors_from_xml_report.py b/scripts/parse_sanitizer_errors_from_xml_report.py index dc219ac1c..e19f3e3eb 100644 --- a/scripts/parse_sanitizer_errors_from_xml_report.py +++ b/scripts/parse_sanitizer_errors_from_xml_report.py @@ -59,9 +59,7 @@ class SanitizerError: last_line = traceback.split("\n")[-1].strip() assert last_line.startswith(f"SUMMARY: {self.SUMMARY_ID}") m = re.match( - r"SUMMARY: " - + self.SUMMARY_ID - + r": ([a-z-A-Z]+) (.*\/.*\.[ch]:\d+:\d+) in", + r"SUMMARY: " + self.SUMMARY_ID + r": ([a-z-A-Z]+) (.*\/.*\.[ch]:\d+:\d+)", last_line, ) assert m is not None @@ -95,7 +93,7 @@ class AsanError(SanitizerError): m = re.match( r"SUMMARY: " + self.SUMMARY_ID - + r": ([a-z-]*) (.*\/.*\.[ch]:\d+:\d+) in", + + r": ([a-z-A-Z]+) (.*\/.*\.[ch]:\d+:\d+)", last_line, ) assert m is not None -- GitLab