test(parallels): accept silent Windows background starts

This commit is contained in:
Peter Steinberger
2026-04-30 17:06:30 +01:00
parent d1708b8003
commit 10c39c33bf
2 changed files with 5 additions and 0 deletions

View File

@@ -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) {

View File

@@ -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)");
});