From: Vincent Fu Date: Tue, 10 Dec 2019 17:54:42 +0000 (-0500) Subject: t/run-fio-tests: relax acceptance criterion for t0011 X-Git-Tag: fio-3.17~2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=41ceb6c79aea52bd46ea13c5036722a294bb719e;p=fio.git t/run-fio-tests: relax acceptance criterion for t0011 I saw a handful of benign failures for t0011 when run on travis/appveyor. This patch allows the test to still pass with a measured IOPS of 998 to 1002 and adds a debug print for the value actually observed. Signed-off-by: Jens Axboe --- diff --git a/t/run-fio-tests.py b/t/run-fio-tests.py index 4c7cc3a4..a0a1e8fa 100755 --- a/t/run-fio-tests.py +++ b/t/run-fio-tests.py @@ -406,9 +406,10 @@ class FioJobTest_t0011(FioJobTest): iops1 = self.json_data['jobs'][0]['read']['iops'] iops2 = self.json_data['jobs'][1]['read']['iops'] ratio = iops2 / iops1 + logging.debug("Test %d: iops1: %f" % (self.testnum, iops1)) logging.debug("Test %d: ratio: %f" % (self.testnum, ratio)) - if iops1 < 999 or iops1 > 1001: + if iops1 < 998 or iops1 > 1002: self.failure_reason = "{0} iops value mismatch,".format(self.failure_reason) self.passed = False