aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/mtest.py
diff options
context:
space:
mode:
authorDimitri John Ledkov <dimitri.ledkov@canonical.com>2022-07-27 12:48:29 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2022-08-12 21:16:07 +0300
commitc3cc66a1cc6e6e1637908ad88320a26fbc08bbc4 (patch)
treec924b113f1cbfdce345cca323ef5efa8292e6e61 /mesonbuild/mtest.py
parent28d07c31b818d04dede11a3e48a87e5265d53c8f (diff)
downloadmeson-c3cc66a1cc6e6e1637908ad88320a26fbc08bbc4.zip
meson-c3cc66a1cc6e6e1637908ad88320a26fbc08bbc4.tar.gz
meson-c3cc66a1cc6e6e1637908ad88320a26fbc08bbc4.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>
Diffstat (limited to 'mesonbuild/mtest.py')
-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