diff options
author | Anthony Iliopoulos <ailiop@suse.com> | 2022-01-21 14:58:02 +0100 |
---|---|---|
committer | Eryu Guan <guaneryu@gmail.com> | 2022-02-14 00:40:57 +0800 |
commit | 9017f3b63b50f467daf8a816f98dfc13544cdb49 (patch) | |
tree | 1f106dbe79bc739f457a2bb786ba1c68dffc0260 | |
parent | 6bd65c707208afdc3d81d3146ac171d7621c26ee (diff) | |
download | xfstests-dev-9017f3b63b50f467daf8a816f98dfc13544cdb49.tar.gz |
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 <ailiop@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
-rw-r--r-- | common/dump | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/common/dump b/common/dump index 3c4029ff1f..ea16d442cb 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 |