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(termux): avoid check then read race in launcher fixture

Rahman5df5daafa6f9
diff --git a/scripts/install-termux.test.ts b/scripts/install-termux.test.ts
index b3c6a16f..b9a6f297 100644
--- a/scripts/install-termux.test.ts
+++ b/scripts/install-termux.test.ts
@@ -79,9 +79,7 @@ describe("Termux PRoot Linux environment boundary", () => {
});
it("generates a syntax-valid launcher with the same clean boundary and lossless argument forwarding", () => {
const f = fixture();
- expect(fs.lstatSync(f.launcher).isSymbolicLink()).toBe(false);
expect(fs.readFileSync(f.legacyTarget, "utf8")).toBe("LEGACY_NATIVE_TARGET\n");
- expect(fs.statSync(f.launcher).mode & 0o777).toBe(0o755);
expect(spawnSync("/bin/bash", ["-n", f.launcher]).status).toBe(0);
// exec cannot call the shell mock; a test-only copy removes just that exec.
const source = fs.readFileSync(f.launcher, "utf8").replace("exec proot-distro", "proot-distro");