Skip to content

The agent that grows with you

test(docker): the image allows opt-in installs now

ethernet0377e9d814bb
diff --git a/tests/docker/test_immutable_install.py b/tests/docker/test_immutable_install.py
index 0b23c1df1d1..e56f8313c76 100644
--- a/tests/docker/test_immutable_install.py
+++ b/tests/docker/test_immutable_install.py
@@ -6,7 +6,7 @@ Build the real image and verify at runtime:
2. A stale "docker" stamp in $HERMES_HOME is healed (removed) on boot
The hosted write-policy env (PYTHONDONTWRITEBYTECODE,
-HERMES_DISABLE_LAZY_INSTALLS, ...) is covered by
+HERMES_WRITE_SAFE_ROOT, ...) is covered by
test_immutable_install_permissions.py.
"""
from __future__ import annotations
diff --git a/tests/docker/test_immutable_install_permissions.py b/tests/docker/test_immutable_install_permissions.py
index e9a4466a61e..048d24c1cbd 100644
--- a/tests/docker/test_immutable_install_permissions.py
+++ b/tests/docker/test_immutable_install_permissions.py
@@ -9,7 +9,9 @@ def test_container_sets_hosted_write_policy_env(built_image: str) -> None:
script = (
'test "$HERMES_HOME" = "/opt/data" && '
'test "$HERMES_WRITE_SAFE_ROOT" = "/opt/data" && '
- 'test "$HERMES_DISABLE_LAZY_INSTALLS" = "1" && '
+ # Opt-in extras install into PM generations under $HERMES_HOME, never
+ # the sealed /opt/hermes tree, so the image must not refuse them.
+ 'test -z "${HERMES_DISABLE_LAZY_INSTALLS:-}" && '
'test "$PYTHONDONTWRITEBYTECODE" = "1"'
)
result = subprocess.run(