Skip to content

Commit 92cc96f

Browse files
TrottMylesBorins
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 d4edc82 commit 92cc96f

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
@@ -31,7 +31,7 @@ if (process.getuid() !== 0) {
3131

3232
assert.throws(
3333
() => { process.setuid('nobody'); },
34-
/^Error: EPERM, /
34+
/^Error: (EPERM, .+|setuid user id does not exist)$/
3535
);
3636
return;
3737
}

0 commit comments

Comments
 (0)