Skip to content

armgit / mso

Public Imported from GitHub
0

Browser-based graphical shell and control plane for a Linux server you own — real terminal, file manager, live metrics and BYOK AI in one mobile-first workspace. Next.js 16 · React 19 · node-pty · Tailwind v4 · shadcn/ui. Public alpha, self-hosted.

test(install): read abort capture by descriptor

Abdurrahman Fakhrul857f5aab0e89
diff --git a/docs/CHANGELOG.md b/docs/CHANGELOG.md
index e8d6fe26..e8e95f4a 100644
--- a/docs/CHANGELOG.md
+++ b/docs/CHANGELOG.md
@@ -46,6 +46,7 @@ this is the *what*, and it is what Settings → About shows as “What's new”.
**Tests**
+- `install` read abort capture by descriptor
- `install` align bootstrap and abort harness
- `install` make abort recovery harness static
- `gateway` treat zombie children as stopped
diff --git a/scripts/install-runtime-abort-recovery.test.ts b/scripts/install-runtime-abort-recovery.test.ts
index 6247dfdd..e436f5a1 100644
--- a/scripts/install-runtime-abort-recovery.test.ts
+++ b/scripts/install-runtime-abort-recovery.test.ts
@@ -17,7 +17,10 @@ function runCleanup(mode: "pre" | "post") {
encoding: "utf8",
stdio: ["ignore", "pipe", "pipe", fd],
});
- return { out, calls: fs.readFileSync(capture, "utf8") };
+ const size = fs.fstatSync(fd).size;
+ const bytes = Buffer.alloc(size);
+ if (size > 0) fs.readSync(fd, bytes, 0, size, 0);
+ return { out, calls: bytes.toString("utf8") };
} finally {
fs.closeSync(fd);
}