From e92212c52d53f16d2de8d8d67988b2e0fc3c9223 Mon Sep 17 00:00:00 2001 From: Xinliang Liu Date: Mon, 3 Apr 2023 03:47:23 +0000 Subject: [PATCH] LU-16673 tests: add checking for user USER0 Add checking for user USER0 in tests 125, 154a, 154b. Lustre-change: https://review.whamcloud.com/50501 Lustre-commit: b7b55534b9b5d4d58025082ae5403938853b168c Test-Parameters: trivial testlist=sanity env=ONLY="125 154a 154b" Change-Id: Id42d4b6dca4c05757d02483ddedd65be55df96d6 Signed-off-by: Xinliang Liu Reviewed-by: Alex Deiter Reviewed-by: James Simmons Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55433 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- lustre/tests/sanity.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index eef8bed..d5093cf 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -13467,6 +13467,7 @@ test_125() { # 13358 $LCTL get_param -n mdc.*-mdc-*.connect_flags | grep -q acl || skip_env "must have acl enabled" [ -z "$(which setfacl)" ] && skip_env "must have setfacl tool" + id $USER0 || skip_env "missing user $USER0" test_mkdir $DIR/$tdir $LFS setstripe -S 65536 -c -1 $DIR/$tdir || error "setstripe failed" @@ -15319,6 +15320,7 @@ dot_lustre_fid_permission_check() { echo "link fid $fid" ln -f $ffid $test_dir/tfile.lnk || error "link $ffid failed." if [[ $($LCTL get_param -n mdc.*-mdc-*.connect_flags) =~ acl ]]; then + id $USER0 || skip_env "missing user $USER0" echo "setfacl fid $fid" setfacl -R -m u:$USER0:rwx $ffid || error "setfacl $ffid failed" -- 1.8.3.1