From 289355b83a50befad9366c594dd3fe50e154c094 Mon Sep 17 00:00:00 2001 From: Katarzyna Treder Date: Tue, 8 Apr 2025 09:27:53 +0200 Subject: [PATCH] Fix data integrity unplug test to work with fio newer than 3.30 Signed-off-by: Katarzyna Treder --- .../tests/data_integrity/test_data_integrity_unplug.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/functional/tests/data_integrity/test_data_integrity_unplug.py b/test/functional/tests/data_integrity/test_data_integrity_unplug.py index 898f1b3..a1bd032 100644 --- a/test/functional/tests/data_integrity/test_data_integrity_unplug.py +++ b/test/functional/tests/data_integrity/test_data_integrity_unplug.py @@ -1,6 +1,6 @@ # # Copyright(c) 2022 Intel Corporation -# Copyright(c) 2024 Huawei Technologies Co., Ltd. +# Copyright(c) 2024-2025 Huawei Technologies Co., Ltd. # SPDX-License-Identifier: BSD-3-Clause # @@ -230,7 +230,7 @@ def gen_log(seqno_max): .set_param("write_iolog", f"{io_log_path}_{i}") fio.run() - r = re.compile(r"\S+\s+(read|write)\s+(\d+)\s+(\d+)") + r = re.compile(r"\S+\s+\S+\s+write\s+(\d+)\s+(\d+)") for j in range(num_jobs): log = f"{io_log_path}_{j}" nr = 0 @@ -238,7 +238,7 @@ def gen_log(seqno_max): m = r.match(line) if m: if nr > max_log_seqno: - block = int(m.group(2)) // block_size.value - j * job_workset_blocks + block = int(m.group(1)) // block_size.value - j * job_workset_blocks g_io_log[j][block] += [nr] nr += 1 if nr > seqno_max + 1: