Skip to content

Commit

Permalink
fix: Fix for a fix to support 2 frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
axwitech committed Jun 7, 2022
1 parent d9d57ad commit 5063ca3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion failure_analysis/failure_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def parse_xml(path: Path):
root = tree.getroot()
if int(root.find("testsuite").attrib["failures"]) > 0:
for node in root.findall(".//failure"):
if not node.text:
if node.text:
failure.append(node.text)
else:
failure.append(node.attrib["message"])
Expand Down

0 comments on commit 5063ca3

Please sign in to comment.