From 2953ff3dcefe6c6d958a28c3d0e8739fd22a6c1d Mon Sep 17 00:00:00 2001 From: Wang Shilong Date: Thu, 14 Nov 2019 14:22:22 +0800 Subject: [PATCH] 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 --- lustre/tests/sanity-quota.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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 } -- 1.8.3.1