Skip to content

Commit 69cb19f

Browse files
committed
test(cli): decode registered launcher commands on Windows
1 parent 2ea3464 commit 69cb19f

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

‎.github/workflows/ci.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,9 @@ jobs:
398398
- name: Test ACP handshakes and bundled launchers
399399
run: uv run --frozen --python 3.13 --no-sync pytest tests/integration/test_acp_stdio_smoke.py -m integration -q -n 0 --tb=short
400400

401+
- name: Test the registered launcher command
402+
run: uv run --frozen --python 3.13 --no-sync pytest tests/test_cli_agents_commands.py::test_register_pins_the_resolved_row_into_the_host_roster -q -n 0 --tb=short
403+
401404
core-wheel:
402405
name: kernel wheel smoke
403406
runs-on: ubuntu-latest

‎tests/test_cli_agents_commands.py‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,12 +236,16 @@ def test_register_pins_the_resolved_row_into_the_host_roster(raven_home: Path) -
236236

237237
assert r.exit_code == 0, r.output
238238
from raven.config.update_subagents import get_agents
239+
from raven.utils.commands import command_argv
239240

240241
rows = {row["name"]: row for row in get_agents(config_path=raven_home / "config.json")}
241242
row = rows["Demo-Agent"]
242243
target = raven_home / "agents" / "demo-agent"
243244
assert "{PYTHON}" not in row["command"] and "{SUBAGENT_DIR}" not in row["command"]
244-
assert row["command"].startswith(sys.executable)
245+
argv = command_argv(row["command"])
246+
assert argv[0] == sys.executable
247+
assert Path(argv[1]) == target / "run.py"
248+
assert argv[2:] == ["--acp"]
245249
assert row["cwd"] == str(target)
246250

247251

0 commit comments

Comments
 (0)