Whamcloud - gitweb
LU-15164 tests: remove wrong chattr -h check 97/45697/3
authorElena Gryaznova <elena.gryaznova@hpe.com>
Wed, 1 Dec 2021 18:23:56 +0000 (21:23 +0300)
committerOleg Drokin <green@whamcloud.com>
Wed, 26 Jan 2022 05:15:59 +0000 (05:15 +0000)
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 <elena.gryaznova@hpe.com>
HPE-bug-id: LUS-9967
Change-Id: I0cfd98735e5e0b5956f3dd6385ce626584443bea
Reviewed-on: https://review.whamcloud.com/45697
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Vladimir Saveliev <vlaidimir.saveliev@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh

index 56efc53..229aa73 100755 (executable)
@@ -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/