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 <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/36756
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
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
}
$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
}