From b920eec0490bb0f11b366978fb197ad7dfa8bd01 Mon Sep 17 00:00:00 2001 From: Elena Gryaznova Date: Wed, 1 Dec 2021 21:23:56 +0300 Subject: [PATCH] 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 --- lustre/tests/sanity-quota.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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/ -- 1.8.3.1