Skip to content

The agent that grows with you

test: give the windows desktop-exit case an isolated runtime store

Teknium8920e241566a
diff --git a/tests/scripts/desktop_update/test_desktop_update_windows_marker.py b/tests/scripts/desktop_update/test_desktop_update_windows_marker.py
index fb61392ba85..e30dd922102 100644
--- a/tests/scripts/desktop_update/test_desktop_update_windows_marker.py
+++ b/tests/scripts/desktop_update/test_desktop_update_windows_marker.py
@@ -61,7 +61,8 @@ def _dead_pid() -> int:
def _run(home: Path, *args: str, install: Path | None = None, timeout: int = 120):
command = ['powershell', '-NoProfile', '-ExecutionPolicy', 'Bypass', '-File', str(SCRIPT),
'-InstallRoot', str(install or home / 'hermes-agent'), '-NoUi', *args]
- proc = subprocess.Popen(command, cwd=home, env={**os.environ, 'HERMES_HOME': str(home)},
+ env = {**os.environ, 'HERMES_HOME': str(home), 'HERMES_RUNTIME_DIR': str(home / 'empty-store')}
+ proc = subprocess.Popen(command, cwd=home, env=env,
stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
try:
out, _ = proc.communicate(timeout=timeout)