mirror of
https://github.com/lobaro/restic-backup-docker.git
synced 2026-11-13 15:45:22 +00:00
fix: handle JUnit failures without message in sabotage check
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fc51cea8cf
commit
9c29add70f
1 file changed
+1
-1
+1
-1
@@ -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", ""))
|
||||
|
||||
Reference in new issue
Block a user