summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThibault Saunier <tsaunier@igalia.com>2018-12-06 15:35:18 -0300
committerThibault Saunier <tsaunier@igalia.com>2019-01-02 15:22:35 +0100
commitb68b6df49d3f509ccddcc596346084e831c4beee (patch)
tree1b99d553509708d73a67101f7212e6d153aeae1d
parentcc5b5fa1e316c9da697fdd11989eb0e54790e73f (diff)
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!
-rw-r--r--validate/launcher/reporters.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/validate/launcher/reporters.py b/validate/launcher/reporters.py
index 45f1dd7..1c541b7 100644
--- a/validate/launcher/reporters.py
+++ b/validate/launcher/reporters.py
@@ -217,8 +217,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,