






















@@ -231,6 +231,7 @@ describe("Parallels smoke model selection", () => {
231231let invalidLinuxAgentTimeoutResult: ReturnType<typeof spawnNodeEvalSync>;
232232let invalidWindowsAgentTimeoutResult: ReturnType<typeof spawnNodeEvalSync>;
233233let invalidWindowsUpdateTimeoutResult: ReturnType<typeof spawnNodeEvalSync>;
234+let duplicateNpmUpdatePlatformResult: ReturnType<typeof spawnNodeEvalSync>;
234235235236it("parses macOS dscl user homes with spaces on mounted volumes", () => {
236237expect(parseMacosDsclUserHomeLine("clawuser /Volumes/Macintosh HD/Users/clawuser")).toEqual({
@@ -307,6 +308,10 @@ describe("Parallels smoke model selection", () => {
307308`process.env.OPENCLAW_PARALLELS_WINDOWS_UPDATE_TIMEOUT_S = "12.5"; process.argv = ["node", "${TS_PATHS.windows}"]; await import("./${TS_PATHS.windows}");`,
308309{ env: process.env, imports: ["tsx"] },
309310);
311+duplicateNpmUpdatePlatformResult = spawnNodeEvalSync(
312+`process.argv = ["node", "${TS_PATHS.npmUpdate}", "--platform", "macos,macos"]; await import("./${TS_PATHS.npmUpdate}");`,
313+{ env: process.env, imports: ["tsx"] },
314+);
310315});
311316312317it("keeps the public shell entrypoints as thin TypeScript launchers", () => {
@@ -2090,6 +2095,11 @@ setInterval(() => {}, 1000);
20902095"invalid OPENCLAW_PARALLELS_WINDOWS_UPDATE_TIMEOUT_S: 12.5",
20912096);
209220972098+expect(duplicateNpmUpdatePlatformResult.status).toBe(1);
2099+expect(duplicateNpmUpdatePlatformResult.stderr).toContain(
2100+"duplicate --platform entry: macos",
2101+);
2102+20932103expect(readFileSync(TS_PATHS.macos, "utf8")).toContain(
20942104'this.updateDevTimeoutSeconds = readPositiveIntEnv(\n "OPENCLAW_PARALLELS_MACOS_UPDATE_DEV_TIMEOUT_S"',
20952105);
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。