fix(desktop): keep Windows SSH runtime at machine root
This commit is contained in:
@@ -138,3 +138,12 @@ def test_token_file_rejects_parent_escape(tmp_path, monkeypatch):
|
||||
assert escaped.exists()
|
||||
finally:
|
||||
reset_hermes_home_override(override)
|
||||
|
||||
|
||||
def test_windows_runtime_root_stays_at_machine_root_for_named_profile(tmp_path, monkeypatch):
|
||||
from hermes_cli import windows_ssh_runtime
|
||||
|
||||
machine_root = tmp_path / "custom-hermes-root"
|
||||
monkeypatch.setenv("HERMES_HOME", str(machine_root / "profiles" / "writer_2"))
|
||||
|
||||
assert windows_ssh_runtime._root() == machine_root / "desktop-ssh"
|
||||
|
||||
Reference in New Issue
Block a user