diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 711e6a8a4..bb4123980 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -775,6 +775,10 @@ class JunitBuilder(TestLogger): del case.attrib['result'] for case in suite.findall('.//testcase[@timestamp]'): del case.attrib['timestamp'] + for case in suite.findall('.//testcase[@file]'): + del case.attrib['file'] + for case in suite.findall('.//testcase[@line]'): + del case.attrib['line'] self.root.append(suite) return