From: Elena Gryaznova Date: Wed, 1 Dec 2021 18:23:56 +0000 (+0300) Subject: LU-15164 tests: remove wrong chattr -h check X-Git-Tag: 2.15.0-RC1~56 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b920eec0490bb0f11b366978fb197ad7dfa8bd01;p=fs%2Flustre-release.git LU-15164 tests: remove wrong chattr -h check sanity-quota test_62() is always skipped because of wrong chattr project ID support check. chattr.c: Usage: %s [-pRVf] [-+=aAcCdDeijPsStTuFx] [-v version] files... Let's remove this check: e2fsprogs project ID support for chattr/lsattr exists since 2016. If one is using so old chattr - he will be forced to update by error "root failed to clear inherit". Fixes: 2d3bbce0c9 ("LU-11101 quota: fix setattr project check") Test-Parameters: trivial testlist=sanity-quota env=ONLY=62 Signed-off-by: Elena Gryaznova HPE-bug-id: LUS-9967 Change-Id: I0cfd98735e5e0b5956f3dd6385ce626584443bea Reviewed-on: https://review.whamcloud.com/45697 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Vladimir Saveliev Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 56efc53..229aa73 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -4032,7 +4032,8 @@ run_test 61 "default quota tests" test_62() { ! is_project_quota_supported && skip "Project quota is not supported" - [[ "$(chattr -h 2>&1)" =~ "project" ]] || + [[ "$(chattr -h 2>&1)" =~ "project" || + "$(chattr -h 2>&1)" =~ "pRVf" ]] || skip "chattr did not support project quota" setup_quota_test || error "setup quota failed with $?" local testdir=$DIR/$tdir/