From: James Simmons Date: Fri, 26 Apr 2024 22:26:46 +0000 (-0400) Subject: LU-17786 tests: use $TSTUSR instead of hard coding quota_usr X-Git-Tag: 2.15.64~208 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=17c8de2b7378aa2da710b4842d71f22761ac6d3b;p=fs%2Flustre-release.git LU-17786 tests: use $TSTUSR instead of hard coding quota_usr 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 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/54940 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Sergey Cheremencev Reviewed-by: Andreas Dilger Reviewed-by: Oleg Drokin --- diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index 52dc8eb..575313a 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -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)