Whamcloud - gitweb
LU-17670 tests: sanity-flr/33b allow bigger time difference 52/56752/2
authorBobi Jam <bobijam@whamcloud.com>
Tue, 22 Oct 2024 02:15:12 +0000 (10:15 +0800)
committerOleg Drokin <green@whamcloud.com>
Sat, 26 Oct 2024 23:55:25 +0000 (23:55 +0000)
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 <bobijam@whamcloud.com>
Change-Id: I14482e290fe5a96d1d10b2d47c8b4cfcadec96ec
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56752
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Colin Faber <cfaber@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity-flr.sh

index 3380e43..b294d78 100644 (file)
@@ -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