diff options
author | Dimitri John Ledkov <dimitri.ledkov@canonical.com> | 2022-07-27 12:48:29 +0100 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2022-08-12 21:16:07 +0300 |
commit | c3cc66a1cc6e6e1637908ad88320a26fbc08bbc4 (patch) | |
tree | c924b113f1cbfdce345cca323ef5efa8292e6e61 /mesonbuild/mtest.py | |
parent | 28d07c31b818d04dede11a3e48a87e5265d53c8f (diff) | |
download | meson-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.py | 4 |
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 |