From: Wang Shilong Date: Thu, 14 Nov 2019 06:22:22 +0000 (+0800) Subject: LU-12969 test: reset quota limits for all test ID/users X-Git-Tag: 2.13.51~90 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F56%2F36756%2F4;p=fs%2Flustre-release.git LU-12969 test: reset quota limits for all test ID/users It looks current sanity-quota.sh assumed TSTID/TSTID2 mapped with quota_usr/quota_2usr. However, in a real testing envirment this might be not true. In order to make sure we clean up everthing properly, just reset every IDs, Users, Groups. Test-parameters: trivial testlist=sanity-quota Change-Id: I2faf1a6392ce2ee89e2e22ba0a6ec65efea4ade2 Signed-off-by: Wang Shilong Reviewed-on: https://review.whamcloud.com/36756 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Gu Zheng Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index b091929..bde7155 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -438,9 +438,13 @@ project_quota_enabled || enable_project_quota reset_quota_settings() { resetquota -u $TSTUSR + resetquota -u $TSTID resetquota -g $TSTUSR + resetquota -g $TSTID resetquota -u $TSTUSR2 + resetquota -u $TSTID2 resetquota -g $TSTUSR2 + resetquota -g $TSTID2 resetquota -p $TSTPRJID } @@ -2298,8 +2302,8 @@ test_27b() { # b20200 $SHOW_QUOTA_PROJID || error "lfs quota failed with projid argument" fi - resetquota -u $TSTUSR - resetquota -g $TSTUSR + resetquota -u $TSTID + resetquota -g $TSTID resetquota -p $TSTPRJID return 0 }