From 8e47600aabf7a9f953f269037014b1257a474095 Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Thu, 18 May 2017 20:03:44 -0700 Subject: [PATCH] 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: https://github.com/nodejs/node/pull/13112 Fixes: https://github.com/nodejs/node/issues/13071 Reviewed-By: Gibson Fahnestock Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca --- test/parallel/test-process-setuid-setgid.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parallel/test-process-setuid-setgid.js b/test/parallel/test-process-setuid-setgid.js index 38a677970c2c95..1feb4248d17f7a 100644 --- a/test/parallel/test-process-setuid-setgid.js +++ b/test/parallel/test-process-setuid-setgid.js @@ -51,7 +51,7 @@ if (process.getuid() !== 0) { assert.throws( () => { process.setuid('nobody'); }, - /^Error: EPERM, / + /^Error: (EPERM, .+|setuid user id does not exist)$/ ); return; }