mirror of
https://github.com/moltbot/moltbot.git
synced 2026-05-07 07:58:36 +00:00
test(parallels): accept silent Windows background starts
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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)");
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user