aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>2022-07-27 12:48:29 +0100
committerNirbheek Chauhan <nirbheek@centricular.com>2022-08-13 01:53:03 +0530
commitb32ad7eed01db24f297b605dee4a0b79d0e60082 (patch)
treec64b87ce914cd0a10e2f7552ad3de5c607c14878
parent9e7b21498072afff4f201ce482e2a676d711491c (diff)
downloadmeson-b32ad7eed01db24f297b605dee4a0b79d0e60082.zip
meson-b32ad7eed01db24f297b605dee4a0b79d0e60082.tar.gz
meson-b32ad7eed01db24f297b605dee4a0b79d0e60082.tar.bz2
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>
-rw-r--r--mesonbuild/mtest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py
index 711e6a8..bb41239 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