fix: harden termux update path with uv bootstrap and env guard

This commit is contained in:
adybag14-cyber 2026-05-08 19:31:40 +01:00 committed by Teknium
parent 6f7b698a08
commit 7c174e65f7
2 changed files with 41 additions and 3 deletions

View file

@ -246,3 +246,15 @@ class TestCmdUpdateProfileSkillSync:
cmd_update(mock_args)
assert default_p.path in synced_paths
def test_is_termux_env_true_for_termux_prefix():
from hermes_cli import main as hm
assert hm._is_termux_env({"PREFIX": "/data/data/com.termux/files/usr"}) is True
def test_is_termux_env_false_for_non_termux_prefix():
from hermes_cli import main as hm
assert hm._is_termux_env({"PREFIX": "/usr/local"}) is False