Commit 5767d553 authored by Thibault Saunier's avatar Thibault Saunier 🌵
Browse files

validate:launcher: Make failure as <failure> in our xunit reporter

I think it was a mistake to call them <error> as the two notions are
different (we marked failed test as "failures" in the <testuite> node).

Should make gitlab happy with our file!
parent 744b4324
Pipeline #11363 passed with stages
in 6 minutes and 8 seconds
......@@ -209,8 +209,8 @@ class XunitReporter(Reporter):
self.encoding, 'replace')
xml_file.write(self._forceUnicode(
'<testcase classname=%(cls)s name=%(name)s time="%(taken).3f">'
'<error type=%(errtype)s message=%(message)s>%(stacktrace)s'
'</error>%(systemout)s</testcase>' %
'<failure type=%(errtype)s message=%(message)s>%(stacktrace)s'
'</failure>%(systemout)s</testcase>' %
{'cls': self._quoteattr(test.get_classname()),
'name': self._quoteattr(test.get_name()),
'taken': test.time_taken,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment