mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-18 15:28:48 +03:00
test(cli): let the ACP subprocess suites start another binary
OPENCODE_ACP_TEST_BIN runs the same suites against the Rust client (C.11).
This commit is contained in:
@@ -186,7 +186,9 @@ function verifierConfig(llmUrl: string) {
|
||||
}
|
||||
|
||||
function spawnAcp(input: { readonly env: Record<string, string | undefined> }): AcpProcess {
|
||||
const child = Bun.spawn([process.execPath, "run", "src/index.ts", "acp"], {
|
||||
// OPENCODE_ACP_TEST_BIN runs the suites against another ACP binary, such as the Rust client.
|
||||
const override = process.env.OPENCODE_ACP_TEST_BIN
|
||||
const child = Bun.spawn(override ? [override, "acp"] : [process.execPath, "run", "src/index.ts", "acp"], {
|
||||
cwd: path.join(import.meta.dir, "../.."),
|
||||
env: input.env,
|
||||
stdin: "pipe",
|
||||
|
||||
Reference in New Issue
Block a user