Whamcloud - gitweb
LU-17786 tests: use $TSTUSR instead of hard coding quota_usr 40/54940/2
authorJames Simmons <jsimmons@infradead.org>
Fri, 26 Apr 2024 22:26:46 +0000 (18:26 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 21 May 2024 18:46:07 +0000 (18:46 +0000)
The bash function check_system_is_clean() hard codes the user.
For many external system due to security we can't create special
users so use $TSTUSR instead that can already exits for us.

Change-Id: I80d522f04bc813cd6d5aef000eeeb34d6ec81ebd
Fixes: 7e1fb1a296e ("LU-17179 tests: check the system is clean")
Test-Parameters: trivial testlist=sanity-quota
Signed-off-by: James Simmons <jsimmons@infradead.org>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54940
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-quota.sh

index 52dc8eb..575313a 100755 (executable)
@@ -564,7 +564,7 @@ wait_quota_synced() {
 check_system_is_clean() {
        local used
 
-       lfs quota -uv quota_usr /mnt/lustre
+       lfs quota -uv $TSTUSR /mnt/lustre
        for cur in "curspace" "curinodes";
        do
                used=$(getquota -u $TSTUSR global $cur)