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!
This commit is contained in:
Thibault Saunier 2018-12-06 15:35:18 -03:00
parent 744b432441
commit 5767d553a6

View file

@ -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,