From 17c8de2b7378aa2da710b4842d71f22761ac6d3b Mon Sep 17 00:00:00 2001 From: James Simmons Date: Fri, 26 Apr 2024 18:26:46 -0400 Subject: [PATCH] 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 --- lustre/tests/sanity-quota.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 1.8.3.1