From: Alexander Boyko Date: Thu, 19 Sep 2019 13:22:57 +0000 (-0400) Subject: LU-12787 tests: skip project quota if it is disabled X-Git-Tag: 2.13.51~43 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9fb6818fe3d1e0130e147c5cf740e5e9a2631166;p=fs%2Flustre-release.git LU-12787 tests: skip project quota if it is disabled quota_scan touchs project quota in case of errors or logs. When project quota is not supported, this leads to error: Unexpected quotactl error: Operation not supported ... Some errors happened when getting quota info. Some devices may be not working or deactivated. The data in "[]" is inaccurate. The fix adds a check before touching project quota. Cray-bug-id: LUS-7811 Test-Parameters: testlist=sanity-quota Signed-off-by: Alexander Boyko Change-Id: Ia733b666d6937ea9e8e99ef856d2ae1246dc44d1 Reviewed-on: https://review.whamcloud.com/36997 Tested-by: jenkins Reviewed-by: Wang Shilong Reviewed-by: Alexander Zarochentsev Tested-by: Maloo Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index bde7155..4689018 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -138,6 +138,7 @@ quota_scan() { xargs stat 2>/dev/null) fi + is_project_quota_supported || return 0 if [ "$local_ugp" == "a" -o "$local_ugp" == "p" ]; then $LFS quota -v -p $TSTPRJID $DIR log "Files for project ($TSTPRJID):"