Skip to content

The agent that grows with you

test(update): zip-overlay guard test reports the porcelain status on failure

teknium1b1946467657e
diff --git a/tests/hermes_cli/test_update_zip_fallback_guards.py b/tests/hermes_cli/test_update_zip_fallback_guards.py
index 0bc3df2f276..a623a0b2bfe 100644
--- a/tests/hermes_cli/test_update_zip_fallback_guards.py
+++ b/tests/hermes_cli/test_update_zip_fallback_guards.py
@@ -307,7 +307,11 @@ def test_zip_overlay_flag_is_valid_against_real_git(tmp_path):
# not user data the overlay would destroy — refusing here made ZIP fallback impossible.
(tmp_path / ".venv").mkdir()
(tmp_path / ".venv" / "lib.py").write_text("x", encoding="utf-8")
- assert update_cmd._zip_overlay_block_reason(tmp_path) is None
+ status = subprocess.run(
+ ["git", "-C", str(tmp_path), "status", "--porcelain", "--untracked-files=all", "--ignored=matching"],
+ capture_output=True, text=True,
+ ).stdout
+ assert update_cmd._zip_overlay_block_reason(tmp_path) is None, status
def test_zip_overlay_requests_ignored_files_from_git(tmp_path, monkeypatch):