Skip to content

Commit

Permalink
Merge pull request #186 from Martchus/fixup
Browse files Browse the repository at this point in the history
Fix softfail search, follow-up to 7e2e64d
  • Loading branch information
okurz authored Oct 21, 2021
2 parents 7456747 + 866125b commit e0669b4
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions openqa_review/openqa_review.py
Original file line number Diff line number Diff line change
Expand Up @@ -1008,9 +1008,14 @@ def _get_bugref_for_softfailed_module(self, result_item, module_name):
if match:
return (match.group(1), False)
# custom results can have soft-fail as well
if "result" in field and "softfail" in field["result"]:
elif "result" in field and "title" in field and "softfail" in field["result"]:
match = re.search(bugref_regex, field["title"])
elif "properties" in field and len(field["properties"]) > 0 and field["properties"][0] == "workaround":
elif (
"properties" in field
and "needle" in field
and len(field["properties"]) > 0
and field["properties"][0] == "workaround"
):
log.debug("Evaluating potential workaround needle '%s'" % field["needle"])
match = re.search(bugref_regex, field["needle"])
if not match: # pragma: no cover
Expand Down

0 comments on commit e0669b4

Please sign in to comment.