Whamcloud - gitweb
LU-13670 tests: fix sanity-quota/5 issues 26/59926/2
authorAndreas Dilger <adilger@whamcloud.com>
Tue, 24 Jun 2025 19:08:59 +0000 (13:08 -0600)
committerOleg Drokin <green@whamcloud.com>
Tue, 8 Jul 2025 04:00:01 +0000 (04:00 +0000)
commit1df0c73f65761181f99486b67c27e6a2bb14f83b
tree4b289215e94122b3ccc321e7688984e1e9376a68
parent588850bbeb258bfaf4b0e9b002efa1d2ebf05790
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>
lustre/tests/sanity-quota.sh