From b7fe927b0dd5b895bd1df607d75aa6069577e454 Mon Sep 17 00:00:00 2001 From: Arshad Hussain Date: Fri, 16 Jun 2023 04:12:09 +0530 Subject: [PATCH] LU-16905 tests: Fix 'timeout' value under sanity-quota/18 Presently timeout is picked up via sysctl command under sanity-quota/18. Which is picking up timeout from incorrect location. This patch fixes the issue by reading via $LCTL directly. sysctl output: timeout=$(sysctl -n lustre.timeout) sysctl: cannot stat /proc/sys/lustre/timeout: No such file or directory Test-Parameters: trivial fstype=zfs testlist=sanity-quota env=ONLY=18 Signed-off-by: Arshad Hussain Change-Id: I4604d31c615fa65bf79598cc09f05d9c7c7abf1b Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51337 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Oleg Drokin Reviewed-by: Andreas Dilger Reviewed-by: Hongchao Zhang --- lustre/tests/sanity-quota.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index f50fb56..9b36adb 100755 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -2884,7 +2884,7 @@ test_18_sub () { $LFS setstripe $TESTFILE -i 0 -c 1 || error "setstripe $TESTFILE failed" chown $TSTUSR.$TSTUSR $TESTFILE || error "chown $TESTFILE failed" - local timeout=$(sysctl -n lustre.timeout) + local timeout=$($LCTL get_param -n timeout) if [ $io_type = "directio" ]; then log "Write 100M (directio) ..." @@ -2903,7 +2903,7 @@ test_18_sub () { if at_is_enabled; then timeout=$(at_max_get mds) else - timeout=$(lctl get_param -n timeout) + timeout=$($LCTL get_param -n timeout) fi while [ true ]; do -- 1.8.3.1