fix for proper logging of error values
Signed-off-by: Karolina Rogowska <karolina.rogowska@intel.com>
This commit is contained in:
parent
5256d704b3
commit
42bff04465
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright(c) 2019-2021 Intel Corporation
|
# Copyright(c) 2019-2022 Intel Corporation
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# 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
|
core_errors_in_cache = stats.error_stats.core.total
|
||||||
if fio_errors != core_errors_in_cache:
|
if fio_errors != core_errors_in_cache:
|
||||||
TestRun.fail(
|
TestRun.fail(
|
||||||
f"Core errors in cache stats({core_errors_in_cache}) should be equal to number of"
|
f"Core errors in cache stats ({core_errors_in_cache}) "
|
||||||
" fio errors ({fio_errors})"
|
f"should be equal to number of fio errors ({fio_errors})"
|
||||||
)
|
)
|
||||||
|
|
||||||
with TestRun.step("Wait for fio on good core"):
|
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:
|
if stats.error_stats.core.total != 0:
|
||||||
TestRun.fail(
|
TestRun.fail(
|
||||||
f"No errors should be reported for good core. "
|
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"):
|
with TestRun.step("Stop the cache"):
|
||||||
|
Loading…
Reference in New Issue
Block a user