diff --git a/scripts/parse_sanitizer_errors_from_xml_report.py b/scripts/parse_sanitizer_errors_from_xml_report.py index dc219ac1cfa00ae8bb07a477a30b2a8316921f34..e19f3e3eb6556e26f3b665aabf9f9557080de2be 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