Commit 3cf3aeed authored by Jan Kiene's avatar Jan Kiene
Browse files

relax regex for error parsing

some usan errors apparently do not have the "in" at the end
parent 1e3911d0
Loading
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -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