t/run-fio-tests.py: Accept a wider range of IOPS values
authorBart Van Assche <bvanassche@acm.org>
Sun, 7 Jun 2020 19:11:04 +0000 (12:11 -0700)
committerJens Axboe <axboe@kernel.dk>
Sun, 7 Jun 2020 23:30:42 +0000 (17:30 -0600)
This patch prevents that test 11 sporadically fails as follows:

DEBUG:root:Test 11: return code: 0
DEBUG:root:Test 11: skipped 0 lines decoding JSON data
DEBUG:root:Test 11: iops1: 997.670549
DEBUG:root:Test 11: ratio: 8.163684

Test 11 FAILED:  iops value mismatch,

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
t/run-fio-tests.py

index e7063d3eb63a018b6f2ef7a3c4a04592e02ea2f7..c2352d80c2bf5ab339672ecc19768510971686e9 100755 (executable)
@@ -438,7 +438,7 @@ class FioJobTest_t0011(FioJobTest):
         logging.debug("Test %d: iops1: %f", self.testnum, iops1)
         logging.debug("Test %d: ratio: %f", self.testnum, ratio)
 
-        if iops1 < 998 or iops1 > 1002:
+        if iops1 < 997 or iops1 > 1003:
             self.failure_reason = "{0} iops value mismatch,".format(self.failure_reason)
             self.passed = False