]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
common/dump: add explicit requirement for specific users and groups
authorAnthony Iliopoulos <ailiop@suse.com>
Fri, 21 Jan 2022 13:58:02 +0000 (14:58 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 13 Feb 2022 16:40:57 +0000 (00:40 +0800)
Make the requirement for daemon:sys and bin:bin explicit, so that the
xfs tests that source common/dump and rely on _do_create_dumpdir_fill
and _create_dumpdir_symlinks do not fail on chown when those
users/groups are missing.

Signed-off-by: Anthony Iliopoulos <ailiop@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
common/dump

index 3c4029ff1f37ba77b10fc468ddf15c1c1e3de8e6..ea16d442cb4f688ec7d2cf31c4564963161087ee 100644 (file)
@@ -27,6 +27,11 @@ fi
 [ "$XFSRESTORE_PROG" = "" ] && _notrun "xfsrestore not found"
 [ "$XFSINVUTIL_PROG" = "" ] && _notrun "xfsinvutil not found"
 
+_require_user_exists daemon
+_require_user_exists bin
+_require_group bin
+_require_group sys
+
 # status returned for not run tests
 NOTRUNSTS=2