From 18210d4ee861459a7eba1f10593b251317969089 Mon Sep 17 00:00:00 2001 From: Bobi Jam Date: Tue, 22 Oct 2024 10:15:12 +0800 Subject: [PATCH] LU-17670 tests: sanity-flr/33b allow bigger time difference Allow a bigger time difference between read that switching among mirrors. Test-Parameters: trivial testlist=sanity-flr env=ONLY=33b Signed-off-by: Bobi Jam Change-Id: I14482e290fe5a96d1d10b2d47c8b4cfcadec96ec Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56752 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Colin Faber Reviewed-by: Oleg Drokin --- lustre/tests/sanity-flr.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/tests/sanity-flr.sh b/lustre/tests/sanity-flr.sh index 3380e43..b294d78 100644 --- a/lustre/tests/sanity-flr.sh +++ b/lustre/tests/sanity-flr.sh @@ -1337,9 +1337,9 @@ test_33b() { # remount ost2 start_osts 2 - [ $((r1 * 100)) -gt $((ra * 105)) -a $r1 -gt $((ra + 2)) ] && + (( (r1 * 100) > (ra * 105) && (r1 > ra + 30) )) && error "read mirror too slow without ost1, from $ra to $r1" - [ $((r2 * 100)) -gt $((ra * 105)) -a $r2 -gt $((ra + 2)) ] && + (( (r2 * 100) > (ra * 105) && (r2 > ra + 30) )) && error "read mirror too slow without ost2, from $ra to $r2" wait_osc_import_ready client ost2 -- 1.8.3.1