mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-05-11 03:31:55 +00:00
fix: harden termux update path with uv bootstrap and env guard
This commit is contained in:
parent
6f7b698a08
commit
7c174e65f7
2 changed files with 41 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue