Skip to content

Commit 4071d28

Browse files
committed
fix: decode bytes to string to solve the issue of creation of the Junit XML file
1 parent 8b3b055 commit 4071d28

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

roles/validations/filter_plugins/cifmw_validations_xml_filter.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ def __map_xml_results(cls, test_results):
8787
tc_elm = ET.SubElement(ts_elm, "testcase", attrib=attributes)
8888
if "error" in data:
8989
ET.SubElement(tc_elm, "failure", attrib={"message": data["error"]})
90-
ET.indent(tree, " ")
91-
return ET.tostring(root_elm, encoding="utf-8", xml_declaration=True)
90+
return ET.tostring(root_elm, encoding="utf-8", xml_declaration=True).decode("utf-8")
9291

9392
def filters(self):
9493
return {

0 commit comments

Comments
 (0)