diff --git a/failure_analysis/failure_analysis.py b/failure_analysis/failure_analysis.py index 1829b83..9bbb46f 100644 --- a/failure_analysis/failure_analysis.py +++ b/failure_analysis/failure_analysis.py @@ -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"])