filter: skip the read-only directory test as root, ci's runner ignores mode bits

This commit is contained in:
2026-09-12 10:43:02 +02:00
parent 250bdca7e7
commit a617449dcd
+2
View File
@@ -1067,6 +1067,8 @@ test "6: a 404 leaves the compiled files and the snapshot untouched" {
test "6b: a local failure reports itself, not the previous source's network fault" { test "6b: a local failure reports itself, not the previous source's network fault" {
if (!build_options.integration) return error.SkipZigTest; if (!build_options.integration) return error.SkipZigTest;
// Mode bits do not apply to root, so the denial the test needs cannot happen.
if (std.c.geteuid() == 0) return error.SkipZigTest;
const gpa = testing.allocator; const gpa = testing.allocator;
const env = try Env.create(gpa); const env = try Env.create(gpa);