t/nvmept: add check for iodepth
authorVincent Fu <vincent.fu@samsung.com>
Tue, 27 Jun 2023 20:16:13 +0000 (20:16 +0000)
committerVincent Fu <vincent.fu@samsung.com>
Wed, 5 Jul 2023 19:51:09 +0000 (15:51 -0400)
Make sure that we achieve the iodepth specified in the job options.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
t/nvmept.py

index e235d160caea6a974f9c7768d04a0fdfe1bab051..200219b4aa480a258934492806461307440fbf91 100755 (executable)
@@ -80,6 +80,10 @@ class PassThruTest(FioJobCmdTest):
             print(f"Unhandled rw value {self.fio_opts['rw']}")
             self.passed = False
 
+        if job['iodepth_level']['8'] < 95:
+            print("Did not achieve requested iodepth")
+            self.passed = False
+
 
 TEST_LIST = [
     {