From 6dcf004f73999b7d957ae030f17ad1397ff0542a Mon Sep 17 00:00:00 2001 From: Alexandre Ioffe Date: Tue, 4 Jun 2024 16:25:19 -0700 Subject: [PATCH] EX-9867 test: unlimit expected number of keepalive msgs Sometimes test_165g may be internally delayed and the number of keepalive messages from ofd_access_log_reader may be unexpectably big. To fix, remove the verified upper boundary of the keepalive message counter and make test_165g to expect unlimited number of such messages. Test-Parameters: trivial testlist=sanity env=ONLY="165g",ONLY_REPEAT=20 Signed-off-by: Alexandre Ioffe Change-Id: I8afcfd3c3e52fda229ef81491259bdc600947bd3 Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/55312 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Vitaliy Kuznetsov Reviewed-by: Andreas Dilger --- lustre/tests/sanity.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index c9b0e30..7bdbc4e 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -18295,9 +18295,11 @@ test_165g() { count=$(grep -c "send keepalive" ${trace}) - # Duration 40 seconds / 4 secs interval = 10 times or so - (( count >= 7 && count <= 13 )) || - error "keepalive msg received $count. Expected 7..13" + # Normal duration 40 seconds / 4 secs interval = 10 times or so. + # But sometimes the duration may be unpredictably long + (( count >= 7 )) || error "keepalive msg received $count. Expected >= 7" + + echo "keepalive msg received $count" } run_test 165g "ofd_access_log_reader --keepalive works" -- 1.8.3.1