fix(scripts): honor Windows platform overrides · openclaw/openclaw@6f1cc2f
vincentkoc
·
2026-06-20
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -54,6 +54,29 @@ describe("managed-child-process", () => {
|
54 | 54 | }); |
55 | 55 | }); |
56 | 56 | |
| 57 | +it("uses Windows shell normalization when the platform override is win32", () => { |
| 58 | +expect( |
| 59 | +createManagedCommandSpawnSpec({ |
| 60 | +args: ["lint:scripts", "--", "scripts"], |
| 61 | +bin: "pnpm.cmd", |
| 62 | +comSpec: "C:\\Windows\\System32\\cmd.exe", |
| 63 | +env: {}, |
| 64 | +platform: "win32", |
| 65 | +}), |
| 66 | +).toEqual({ |
| 67 | +args: ["/d", "/s", "/c", "pnpm.cmd lint:scripts -- scripts"], |
| 68 | +command: "C:\\Windows\\System32\\cmd.exe", |
| 69 | +options: { |
| 70 | +cwd: undefined, |
| 71 | +detached: false, |
| 72 | +env: {}, |
| 73 | +shell: false, |
| 74 | +stdio: "inherit", |
| 75 | +windowsVerbatimArguments: true, |
| 76 | +}, |
| 77 | +}); |
| 78 | +}); |
| 79 | + |
57 | 80 | it("preserves explicit non-shell Windows subprocesses", () => { |
58 | 81 | expect( |
59 | 82 | createManagedCommandSpawnSpec({ |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。