From: Arshad Hussain Date: Thu, 15 Jun 2023 22:42:09 +0000 (+0530) Subject: LU-16905 tests: Fix 'timeout' value under sanity-quota/18 X-Git-Tag: 2.15.57~107 X-Git-Url: https://git.whamcloud.com/gitweb?a=commitdiff_plain;h=b7fe927b0dd5b895bd1df607d75aa6069577e454;p=fs%2Flustre-release.git 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 --- 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