Skip to content

Commit b32ad7e

Browse files
xnoxnirbheek
authored andcommitted
mesonbuild/mtest.py: filter more invalid googletest JUnit4 attributes
googletest 1.12.1 generates new JUnit4 invalid attributes file and line. Maybe all gtest "invalid" attributes are actually valid JUnit5 attributes, and maybe schema should be upgraded to JUni5. Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
1 parent 9e7b214 commit b32ad7e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

mesonbuild/mtest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -775,6 +775,10 @@ def log(self, harness: 'TestHarness', test: 'TestRun') -> None:
775775
del case.attrib['result']
776776
for case in suite.findall('.//testcase[@timestamp]'):
777777
del case.attrib['timestamp']
778+
for case in suite.findall('.//testcase[@file]'):
779+
del case.attrib['file']
780+
for case in suite.findall('.//testcase[@line]'):
781+
del case.attrib['line']
778782
self.root.append(suite)
779783
return
780784

0 commit comments

Comments
 (0)