diff --git a/scripts/e2e/parallels/windows-smoke.ts b/scripts/e2e/parallels/windows-smoke.ts index 33f3975dd6a..c7812787a69 100755 --- a/scripts/e2e/parallels/windows-smoke.ts +++ b/scripts/e2e/parallels/windows-smoke.ts @@ -688,6 +688,10 @@ Start-Process -FilePath powershell.exe -WindowStyle Hidden -ArgumentList @('-NoP ); const launchLog = await readFile(launchLogPath, "utf8").catch(() => ""); this.log(launchLog); + if (launchStatus === 0 && launchLog.includes("started")) { + launched = true; + break; + } if (launchStatus === 0 || launchStatus === 124) { const materialized = this.waitForBackgroundMaterialized(pathsScript, 45_000); if (!materialized) { diff --git a/test/scripts/parallels-smoke-model.test.ts b/test/scripts/parallels-smoke-model.test.ts index d82cfe50950..997fb77f162 100644 --- a/test/scripts/parallels-smoke-model.test.ts +++ b/test/scripts/parallels-smoke-model.test.ts @@ -375,6 +375,7 @@ console.log(resolveUbuntuVmName("Ubuntu missing")); expect(script).toContain("__OPENCLAW_LOG_OFFSET__"); expect(script).toContain("result.status !== 0 && result.status !== 124"); expect(script).toContain("Start-Process -FilePath powershell.exe"); + expect(script).toContain('launchLog.includes("started")'); expect(script).toContain("waitForBackgroundMaterialized(pathsScript, 45_000)"); });