From b4711b31e93b160ff6e8c4dc1e1240f5adddf0bd Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Wed, 15 Dec 2021 13:22:23 -0700 Subject: [PATCH] LU-15259 tests: skip acl tests if no bin/daemon users 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. Lustre-change: https://review.whamcloud.com/45868 Lustre-commit: da7f2848a2aae2ec4852b23e55d23d42a30205ce Test-Parameters: trivial clientdistro=sles15sp3 Signed-off-by: Andreas Dilger Change-Id: I526f9318862577a6b73c3b63cfc95a3d793ebbe5 Reviewed-on: https://review.whamcloud.com/46141 Tested-by: jenkins Tested-by: Maloo --- lustre/tests/sanity.sh | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index 0e0d321..9114d58 100755 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -77,8 +77,14 @@ if (( $LINUX_VERSION_CODE >= $(version_code 4.18.0) && ALWAYS_EXCEPT+=" 411" fi -# 5 12 8 12 (min)" -[ "$SLOW" = "no" ] && EXCEPT_SLOW="27m 64b 68 71 115 135 136 300o" +#skip ACL tests on 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" if [ "$mds1_FSTYPE" = "zfs" ]; then # bug number for skipped test: -- 1.8.3.1