Skip to content

Commit 4cd22ee

Browse files
author
Chris Harris
committed
Post processing fix for total_iodepth runs
Signed-off-by: Chris Harris (harriscr@uk.ibm.com)
1 parent 6f6dffa commit 4cd22ee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

post_processing/formatter/test_run_result.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,10 +320,11 @@ def _get_iodepth(self, iodepth_value: str, logfile_name: str) -> str:
320320
# the logfile name is of the format:
321321
# /tmp/cbt/00000000/LibrbdFio/randwrite_1048576/iodepth-001/numjobs-001/output.0
322322
iodepth_start_index: int = logfile_name.find("iodepth")
323+
numjobs_start_index: int = logfile_name.find("numjobs")
323324
# an index of -1 is no match found, so do nothing
324-
if iodepth_start_index != -1:
325+
if iodepth_start_index != -1 and numjobs_start_index != -1:
325326
iodepth_end_index: int = iodepth_start_index + len("iodepth")
326-
iodepth_string: str = logfile_name[iodepth_end_index + 1 : iodepth_end_index + 4]
327+
iodepth_string: str = logfile_name[iodepth_end_index + 1 : numjobs_start_index - 1]
327328
logfile_iodepth: int = int(iodepth_string)
328329

329330
if logfile_iodepth > iodepth:

0 commit comments

Comments
 (0)