fix: handle JUnit failures without message in sabotage check

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
Tobias KaupatandClaude Sonnet 5.5 committed 2026-10-20 10:17:52 +02:00
1 parent fc51cea8cf
commit 9c29add70f
1 file changed
+1 -1
+1 -1
View File
@@ -76,7 +76,7 @@ def red_tests(report: Path) -> tuple[set[str], set[str]]:
failure = case.find("failure")
if failure is None:
continue
if STEP_FAILED in failure.get("message") or "":
if STEP_FAILED in (failure.get("message") or "") or STEP_FAILED in (failure.text or ""):
errors.add(case.get("name", ""))
else:
failures.add(case.get("name", ""))