The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
test: fixture scripts use the portable bash shebang
ethernet7f08efb09409
diff --git a/tests/cron/test_cron_no_agent.py b/tests/cron/test_cron_no_agent.pyindex 406bec14ba2..bc01531e960 100644--- a/tests/cron/test_cron_no_agent.py+++ b/tests/cron/test_cron_no_agent.py@@ -138,7 +138,7 @@ def test_run_job_no_agent_reloads_dotenv_before_script(hermes_env, monkeypatch):_PRESENCE_PROBE = (- "#!/bin/bash\n"+ "#!/usr/bin/env bash\n"'for n in JOB_SVC_TOKEN LAUNCH_ONLY_TOKEN; do [ -n "${!n}" ] && echo "$n=set" || echo "$n=MISSING"; done\n')diff --git a/tests/hermes_cli/test_linux_desktop_entry.py b/tests/hermes_cli/test_linux_desktop_entry.pyindex 6588a2f2aa2..5345536f5de 100644--- a/tests/hermes_cli/test_linux_desktop_entry.py+++ b/tests/hermes_cli/test_linux_desktop_entry.py@@ -454,13 +454,13 @@ def test_exec_never_persists_a_checkout_internal_path_hit(tmp_path, xdg_home, moroot = _make_project(tmp_path)venv_script = root / "venv" / "bin" / "hermes"venv_script.parent.mkdir(parents=True)- venv_script.write_text("#!/bin/bash\nexec true\n", encoding="utf-8")+ venv_script.write_text("#!/usr/bin/env bash\nexec true\n", encoding="utf-8")venv_script.chmod(0o755)known_wrapper = tmp_path / "path-home" / ".local" / "bin" / "hermes"known_wrapper.parent.mkdir(parents=True)known_wrapper.write_text(- f'#!/bin/bash\nexec {root / "venv" / "bin" / "python"} {root / "hermes"} "$@"\n',+ f'#!/usr/bin/env bash\nexec {root / "venv" / "bin" / "python"} {root / "hermes"} "$@"\n',encoding="utf-8",)known_wrapper.chmod(0o755)@@ -511,7 +511,7 @@ def test_exec_finds_known_wrapper_when_resolver_has_no_candidate(known_wrapper = tmp_path / "cold-home" / ".local" / "bin" / "hermes"known_wrapper.parent.mkdir(parents=True)known_wrapper.write_text(- f'#!/bin/bash\nexec {root / "venv" / "bin" / "python"} {root / "hermes"} "$@"\n',+ f'#!/usr/bin/env bash\nexec {root / "venv" / "bin" / "python"} {root / "hermes"} "$@"\n',encoding="utf-8",)known_wrapper.chmod(0o755)diff --git a/tests/tools/test_process_registry.py b/tests/tools/test_process_registry.pyindex b462f81dfc0..d1c4632024f 100644--- a/tests/tools/test_process_registry.py+++ b/tests/tools/test_process_registry.py@@ -1747,11 +1747,11 @@ class TestTerminateHostPidPosix:# Child logs a registry-delivered TERM; the parent kills it with KILL# (logs nothing) and reaps it, then exits 0 — like a browser reaping its zygote.child_sh.write_text(- "#!/bin/bash\n"+ "#!/usr/bin/env bash\n"f"trap 'echo child-TERM >> {log}; exit 0' TERM\n"f"echo up >> {log}\nwhile :; do sleep 0.1; done\n")parent_sh.write_text(- "#!/bin/bash\n"+ "#!/usr/bin/env bash\n"f"bash {child_sh} & kid=$!\n"f"trap 'echo parent-TERM >> {log}; kill -KILL $kid; wait $kid; exit 0' TERM\n""while :; do sleep 0.1; done\n")