From 42bff0446582a0e612d3499f8676436a5a9d8280 Mon Sep 17 00:00:00 2001 From: Karolina Rogowska Date: Thu, 22 Sep 2022 12:39:55 +0200 Subject: [PATCH] fix for proper logging of error values Signed-off-by: Karolina Rogowska --- .../tests/fault_injection/test_primary_device_error.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/functional/tests/fault_injection/test_primary_device_error.py b/test/functional/tests/fault_injection/test_primary_device_error.py index 14c6f8a..35647bf 100644 --- a/test/functional/tests/fault_injection/test_primary_device_error.py +++ b/test/functional/tests/fault_injection/test_primary_device_error.py @@ -1,5 +1,5 @@ # -# Copyright(c) 2019-2021 Intel Corporation +# Copyright(c) 2019-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -83,8 +83,8 @@ def test_core_device_error(io_dir, cache_mode, cache_line_size): core_errors_in_cache = stats.error_stats.core.total if fio_errors != core_errors_in_cache: TestRun.fail( - f"Core errors in cache stats({core_errors_in_cache}) should be equal to number of" - " fio errors ({fio_errors})" + f"Core errors in cache stats ({core_errors_in_cache}) " + f"should be equal to number of fio errors ({fio_errors})" ) with TestRun.step("Wait for fio on good core"): @@ -96,7 +96,7 @@ def test_core_device_error(io_dir, cache_mode, cache_line_size): if stats.error_stats.core.total != 0: TestRun.fail( f"No errors should be reported for good core. " - "Actual result: {stats.error_stats.total}" + f"Actual result: {stats.error_stats.total}" ) with TestRun.step("Stop the cache"):