Skip to content

Commit fd2be1b

Browse files
author
Raymo
committed
fix(test): relax Windows ACL assertion to match icacls (F) and (I)(F) forms
CI on windows-latest printed 'runneradmin:(F)' which the old regex /:\(I?\)\(F\)/ could not match (it required an empty or 'I' group between the parens). Accept both forms icacls emits.
1 parent 6387f15 commit fd2be1b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

packages/core/src/tests/private-storage.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,8 @@ describe("private-storage", () => {
6565
assert.ok(!out.includes(dangerous), `must not contain ${dangerous}`);
6666
}
6767
// The current user keeps full control (with or without inherited flag).
68-
assert.match(out, /:\(I?\)\(F\)/, "current user must retain full control");
68+
// icacls prints either `user:(F)` or `user:(I)(F)` depending on the ACE.
69+
assert.match(out, /:\(I?\)?\(F\)/, "current user must retain full control");
6970
});
7071

7172
it("is idempotent when called repeatedly", () => {

0 commit comments

Comments
 (0)