Whamcloud - gitweb
LU-16673 tests: add checking for user USER0 33/55433/2
authorXinliang Liu <xinliang.liu@linaro.org>
Mon, 3 Apr 2023 03:47:23 +0000 (03:47 +0000)
committerOleg Drokin <green@whamcloud.com>
Thu, 20 Jun 2024 21:33:31 +0000 (21:33 +0000)
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 <xinliang.liu@linaro.org>
Reviewed-by: Alex Deiter <alex.deiter@gmail.com>
Reviewed-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55433
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index eef8bed..d5093cf 100755 (executable)
@@ -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"