fix for proper logging of error values

Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
This commit is contained in:
Karolina Rogowska 2022-09-22 12:39:55 +02:00
parent 5256d704b3
commit 42bff04465

View File

@ -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"):