From 9017f3b63b50f467daf8a816f98dfc13544cdb49 Mon Sep 17 00:00:00 2001 From: Anthony Iliopoulos Date: Fri, 21 Jan 2022 14:58:02 +0100 Subject: [PATCH] common/dump: add explicit requirement for specific users and groups 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 Reviewed-by: Eryu Guan Signed-off-by: Eryu Guan --- common/dump | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/dump b/common/dump index 3c4029ff..ea16d442 100644 --- a/common/dump +++ b/common/dump @@ -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 -- 2.39.5