mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-22 09:28:14 +00:00
fix(mac): isolate dmg resize limits
This commit is contained in:
@@ -62,6 +62,15 @@ describe("create-dmg plist validation", () => {
|
||||
expect(readBlock).not.toContain("|| echo");
|
||||
});
|
||||
|
||||
it("keeps temporary DMG artifacts scoped to one run", () => {
|
||||
const script = readFileSync(scriptPath, "utf8");
|
||||
|
||||
expect(script).toContain('DMG_TEMP="$(mktemp -d "${TMPDIR:-/tmp}/openclaw-dmg.XXXXXX")"');
|
||||
expect(script).toContain('DMG_LIMITS_PATH="$DMG_TEMP/resize-limits.txt"');
|
||||
expect(script).toContain('hdiutil resize -limits "$DMG_RW_PATH" >"$DMG_LIMITS_PATH"');
|
||||
expect(script).not.toContain("/tmp/openclaw-dmg-limits.txt");
|
||||
});
|
||||
|
||||
it.runIf(process.platform === "darwin")(
|
||||
"fails before hdiutil when required plist keys are missing",
|
||||
() => {
|
||||
|
||||
Reference in New Issue
Block a user