LU-13670 tests: fix sanity-quota/5 issues
Fix several issues in test_5:
- inode limit is set to only 10, but the minimum qunit is 1024, which
generates the following warning:
lfs setquota: warning: inode hardlimit 10 smaller than minimum qunit
- the checks for "setquota -g" are misorderd with project quota, which
means the project quota was never enabled for this test
- old-style for-loop that could just be handled directly by chown
- uppercase local variables should not be used
- old bash style
Test-Parameters: trivial
Fixes:
0eff453185 ("LU-4017 quota: extend to test project quota")
Signed-off-by: Andreas Dilger <adilger@whamcloud.com>
Change-Id: Ic4cadc7959a36e2881bb6417899bf278e8120431
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59926
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: Frederick Dilger <fdilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>