Use processced skipreason for generating skip Junit node
This commit is contained in:
parent
d6010aa0c9
commit
580c8525f0
|
@ -162,9 +162,8 @@ class LogXML(object):
|
||||||
filename, lineno, skipreason = report.longrepr
|
filename, lineno, skipreason = report.longrepr
|
||||||
if skipreason.startswith("Skipped: "):
|
if skipreason.startswith("Skipped: "):
|
||||||
skipreason = bin_xml_escape(skipreason[9:])
|
skipreason = bin_xml_escape(skipreason[9:])
|
||||||
report.longrepr = filename, lineno, skipreason
|
|
||||||
self.append(
|
self.append(
|
||||||
Junit.skipped("%s:%s: %s" % report.longrepr,
|
Junit.skipped("%s:%s: %s" % (filename, lineno, skipreason),
|
||||||
type="pytest.skip",
|
type="pytest.skip",
|
||||||
message=skipreason
|
message=skipreason
|
||||||
))
|
))
|
||||||
|
|
Loading…
Reference in New Issue