From cbc88fb92d7dbe01297343a9ac269fd4b208b6d9 Mon Sep 17 00:00:00 2001 From: Peter Steinberger Date: Thu, 23 Apr 2026 18:55:01 +0100 Subject: [PATCH] test: trim system run runtime duplicate --- src/node-host/invoke-system-run.test.ts | 26 ------------------------- 1 file changed, 26 deletions(-) diff --git a/src/node-host/invoke-system-run.test.ts b/src/node-host/invoke-system-run.test.ts index 78d42ee3908..3415f74132d 100644 --- a/src/node-host/invoke-system-run.test.ts +++ b/src/node-host/invoke-system-run.test.ts @@ -959,32 +959,6 @@ describe("handleSystemRunInvoke mac app exec host routing", () => { message: "SYSTEM_RUN_DENIED: approval script operand changed before execution", exact: true, }); - const stableTmp = createFixtureDir("openclaw-approval-tsx-script-stable-"); - const stableFixture = createRuntimeScriptOperandFixture({ tmp: stableTmp, runtime: "tsx" }); - fs.writeFileSync(stableFixture.scriptPath, stableFixture.initialBody); - const stablePrepared = buildSystemRunApprovalPlan({ - command: stableFixture.command, - cwd: stableTmp, - }); - expect(stablePrepared.ok).toBe(true); - if (!stablePrepared.ok) { - throw new Error("unreachable"); - } - - const stableRun = await runSystemInvoke({ - preferMacAppExecHost: false, - command: stablePrepared.plan.argv, - rawCommand: stablePrepared.plan.commandText, - systemRunPlan: stablePrepared.plan, - cwd: stablePrepared.plan.cwd ?? stableTmp, - approved: true, - security: "full", - ask: "off", - }); - - expect(stableRun.runCommand).toHaveBeenCalledTimes(1); - expectInvokeOk(stableRun.sendInvokeResult); - const missingBindingTmp = createFixtureDir("openclaw-approval-tsx-missing-binding-"); const missingBindingFixture = createRuntimeScriptOperandFixture({ tmp: missingBindingTmp,