Whamcloud - gitweb
LU-16187 tests: Fix is_project_quota_supported()
authorArshad Hussain <arshad.hussain@aeoncomputing.com>
Mon, 26 Sep 2022 09:31:41 +0000 (15:01 +0530)
committerAndreas Dilger <adilger@whamcloud.com>
Wed, 4 Jan 2023 20:39:37 +0000 (20:39 +0000)
commit0a0921b033ad0bb42a08b2f7d6c60a954cc83e99
tree0fa177528b059d83ad546ab782aa2f5ebcc74268
parent30a1b7f7000d08706e62f61efb121f97aadc464d
LU-16187 tests: Fix is_project_quota_supported()

is_project_quota_supported() is called from sanity-quota.sh
to verify if the ldiskfs FS $ENABLE_PROJECT_QUOTAS is true
and to verify if current version of lfs command supports
'project'.  To do this it calls 'lfs --help' which is
not supported. This patch moves 'lfs --help' call to
'lfs --list-commands' call to verfiy if the present
version of lfs supports 'project'

Lustre-change: https://review.whamcloud.com/48654
Lustre-commit: d4848d779bb8716c6df2fe5438fbe00997f87f3d

Test-Parameters: trivial testlist=sanity-quota
Signed-off-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Change-Id: Iba7e6696d3fa9e980088f448ae72b07a4b47f4f2
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/49454
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
lustre/tests/test-framework.sh