Whamcloud - gitweb
LU-15259 tests: skip acl tests if no bin/daemon users 68/45868/3
authorAndreas Dilger <adilger@whamcloud.com>
Wed, 15 Dec 2021 20:22:23 +0000 (13:22 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 18 Jan 2022 18:07:16 +0000 (18:07 +0000)
If the bin/daemon users are not configured on the test system, then
sanity test_103a, test_125, test_154a will fail with:

    $ setfacl -m u:bin:rw f -- failed
    -   ? setfacl: Option -m: Invalid argument near character 3

Skip these tests until they are fixed.

Test-Parameters: trivial clientdistro=sles15sp3
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: I526f9318862577a6b73c3b63cfc95a3d793ebbe5
Reviewed-on: https://review.whamcloud.com/45868
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh

index 0f0e524..58f311e 100755 (executable)
@@ -75,6 +75,12 @@ if (( $LINUX_VERSION_CODE >= $(version_code 4.18.0) &&
        ALWAYS_EXCEPT+=" 411"
 fi
 
+#skip ACL tests on RHEL8 and SLES15 until tests changed to use other users
+if (( $(egrep -cw "^bin|^daemon" /etc/passwd) < 2 )); then
+       # bug number:   LU-15259 LU-15259
+       ALWAYS_EXCEPT+=" 103a  125   154a"
+fi
+
 #                                  5              12     8   12  15   (min)"
 [ "$SLOW" = "no" ] && EXCEPT_SLOW="27m 60i 64b 68 71 115 135 136 230d 300o"