Fix false ATVM failures from reporter txt fallback
This commit is contained in:
@@ -751,11 +751,13 @@ def parse_host_reporter_artifact(artifact_path: Path, host: str, kernels: Dict[s
|
||||
except OSError:
|
||||
text = ""
|
||||
|
||||
failures = 1 if re.search(r"\bTimed out!\b|\bAssertionError\b|\bFAIL\b|\berror\b", text, re.I) else 0
|
||||
failure_detail = extract_failure_detail_from_text_blob(text)
|
||||
structured_failure = re.search(r"^(?:cy:command|cy:task)\terror\t", text, re.I | re.M)
|
||||
failures = 1 if failure_detail or structured_failure else 0
|
||||
status = "FAIL" if failures else "PASS"
|
||||
detail = "1 failures" if failures else "completed"
|
||||
if failures:
|
||||
detail = append_failure_detail(detail, extract_failure_detail_from_text_blob(text))
|
||||
detail = append_failure_detail(detail, failure_detail)
|
||||
return HostResult(
|
||||
host=host,
|
||||
kernel=kernels.get(host, "unknown"),
|
||||
|
||||
Reference in New Issue
Block a user