From: Luis Henriques Date: Mon, 27 Sep 2021 10:58:43 +0000 (+0100) Subject: generic/079: make sure users 'nobody' and 'daemon' exist X-Git-Tag: v2022.05.01~212 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=dfae4068a8249caf4c96700eefc17cce7e37afbc;p=xfstests-dev.git generic/079: make sure users 'nobody' and 'daemon' exist Test 'src/t_immutable' assumes the existence of users 'nobody' and 'daemon' on the system. If any of these users don't exist, the test will fail with: add_acl(/media/scratch/079/immutable.f) did not set errno == EPERM ... because it tries to set ACLs such as: u::rwx,g::rwx,o::rwx,u:daemon:rwx,m::rwx Use the new _require_user_exists() function to ensure these users exist. Signed-off-by: Luis Henriques Reviewed-by: Darrick J. Wong Signed-off-by: Eryu Guan --- diff --git a/tests/generic/079 b/tests/generic/079 index 829275db..9e7ccd31 100755 --- a/tests/generic/079 +++ b/tests/generic/079 @@ -26,6 +26,8 @@ _cleanup() _supported_fs generic _require_chattr ia +_require_user_exists "nobody" +_require_user_exists "daemon" _require_test_program "t_immutable" _require_scratch