Skip to content

Commit b7d171e

Browse files
sahrizviclaude
andcommitted
test(workspace): skip the permission-denied skill test where chmod denies nothing (root, Windows)
Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_018fJ3X7pcGT4R9yzjsJnqsV
1 parent 235efc2 commit b7d171e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎packages/opencode/test/altimate/workspace/contents.test.ts‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,8 @@ describe("workspace skills", () => {
321321
}
322322
})
323323

324-
test("a skill whose SKILL.md cannot even be checked is unreadable, not absent", async () => {
324+
// chmod 000 denies nothing to root and is not enforced on Windows, so there the folder would read normally.
325+
test.skipIf(process.platform === "win32" || process.getuid?.() === 0)("a skill whose SKILL.md cannot even be checked is unreadable, not absent", async () => {
325326
const root = fs.mkdtempSync(path.join(os.tmpdir(), "ws-contents-"))
326327
const locked = path.join(root, "locked")
327328
try {

0 commit comments

Comments
 (0)