Skip to content

The agent that grows with you

test(e2e): distinguish absent and unrelated native DMG receipts

ethernet0fa8dd08cb0e
diff --git a/tests/scripts/install/test_dmg_install_driver.py b/tests/scripts/install/test_dmg_install_driver.py
index 403723d917a..34e9b92cbcd 100644
--- a/tests/scripts/install/test_dmg_install_driver.py
+++ b/tests/scripts/install/test_dmg_install_driver.py
@@ -62,10 +62,10 @@ def test_dmg_driver_requires_complete_pm_source_install(tmp_path, missing, expec
app_bin.chmod(0o755)
home = tmp_path / "home"
home.mkdir()
- if missing != "marker-only":
+ if missing not in {"completion", "marker-only"}:
logs = home / ".hermes/logs"
logs.mkdir(parents=True)
- logged_root = tmp_path / "other-install" if missing in {"completion", "wrong-root-log"} else root
+ logged_root = tmp_path / "other-install" if missing == "wrong-root-log" else root
(logs / "bootstrap-installer.log").write_text(
f"INFO hermes_bootstrap_lib::bootstrap: bootstrap complete install_root={logged_root}\n",
encoding="utf-8",