Whamcloud - gitweb
LU-11086 test: reset quota setting properly 07/32707/3
authorWang Shilong <wshilong@ddn.com>
Wed, 13 Jun 2018 14:12:16 +0000 (22:12 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 18 Jul 2018 05:59:31 +0000 (05:59 +0000)
commit04585d02d1e175cb74254c58ee65291ff707a888
treef8a01cf9bd10c7d53a53d8b48dbaf59466fea457
parent821087e65882a9885964ed07d6f2a630dfb599d5
LU-11086 test: reset quota setting properly

some test cases don't reset quota setting properly, which
make running sanity-quota.sh several times fail, this patch
try to improve this problem by:

1)reset quota setting before check_runas_id_ret, as it will
touch file which might hit EDQUOT if we don't cleanup quota
setting properly since last run.

2)fix to reset quota for test case 55 and 60.

3)reset quota setting again after all tests finished, because
some tests after sanity-quota.sh might be affected, if quota
setting not reset properly for some reasons.

Test-Parameters: trivial testlist=sanity-quota,sanity-quota
Change-Id: I2983102ea379e64173ef8c54b149ba3b5fbfebe9
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/32707
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: James Nunez <jnunez@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh