Skip to content

Commit 1af8b70

Browse files
Trottjasnell
authored andcommitted
test: allow for absent nobody user in setuid test
Some isolated build or test VMs don't have a "nobody" user, causing the parallel/test-process-setuid-setgid test to fail. Add logic to allow for that situation. PR-URL: #13112 Fixes: #13071 Reviewed-By: Gibson Fahnestock <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 72429b3 commit 1af8b70

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-process-setuid-setgid.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ if (process.getuid() !== 0) {
5151

5252
assert.throws(
5353
() => { process.setuid('nobody'); },
54-
/^Error: EPERM, /
54+
/^Error: (EPERM, .+|setuid user id does not exist)$/
5555
);
5656
return;
5757
}

0 commit comments

Comments
 (0)