From ce2faa923a6a006d56c315f2645d45dc7a68aceb Mon Sep 17 00:00:00 2001 From: asemabdallah Date: Fri, 25 Sep 2026 08:34:02 +0300 Subject: [PATCH] fix: skip the POSIX-only Docker runner test on Windows --- tests/computer-runner.test.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/computer-runner.test.ts b/tests/computer-runner.test.ts index 20a30a686..4cd4ab790 100644 --- a/tests/computer-runner.test.ts +++ b/tests/computer-runner.test.ts @@ -5,7 +5,12 @@ import { join } from "node:path"; import { test } from "node:test"; import { runDocker } from "../apps/server/src/computer.ts"; -test("Docker subprocess uses literal argv, strips provider credentials, caps output and bounds hangs", async () => { +// The fake `docker` below is a #! script, which Windows cannot execute without a shell. +const posixOnly = process.platform === "win32" && "the fake docker CLI is a POSIX #! script"; + +test("Docker subprocess uses literal argv, strips provider credentials, caps output and bounds hangs", { + skip: posixOnly, +}, async () => { const directory = await mkdtemp(join(tmpdir(), "openmuse-docker-runner-")); const previousPath = process.env.PATH; const previousKey = process.env.OPENMUSE_TEST_SECRET;