Skip to content

Commit

Permalink
fix: Fix for no failures found case
Browse files Browse the repository at this point in the history
  • Loading branch information
axwitech committed Jun 1, 2022
1 parent 2e63817 commit b45715e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions failure_analysis/failure_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ def run(path: str):
raise IOError(f"{path} should be directory but it was not.")
failure, testname, filename, classname = parse_xml(xml_path)

if len(failure)==0:
print("NO FAILURES FOUND")
exit()

testnames = list(itertools.permutations(testname, 2))
failures = list(itertools.permutations(failure, 2))
filenames = list(itertools.permutations(filename, 2))
Expand Down

0 comments on commit b45715e

Please sign in to comment.