Fix recovery tests
Methods receiving device as an argument, uses its system_path field, not full_path Signed-off-by: Slawomir Jankowski <slawomir.jankowski@intel.com>
This commit is contained in:
parent
cae2dd2ef5
commit
e5c8324398
@ -88,8 +88,8 @@ def test_recovery_all_options(cache_mode, cache_line_size, cleaning_policy, file
|
||||
core.unmount()
|
||||
TestRun.LOGGER.info(f"Number of dirty blocks in cache: {cache.get_dirty_blocks()}")
|
||||
power_cycle_dut()
|
||||
cache_device.full_path = cache_device_link.get_target()
|
||||
core_device.full_path = core_device_link.get_target()
|
||||
cache_device.system_path = cache_device_link.get_target()
|
||||
core_device.system_path = core_device_link.get_target()
|
||||
|
||||
with TestRun.step("Try to start cache without load and force option."):
|
||||
try:
|
||||
|
@ -70,8 +70,8 @@ def test_recovery_flush_reset_raw(cache_mode):
|
||||
|
||||
with TestRun.step("Hard reset DUT during data flushing."):
|
||||
power_cycle_dut(wait_for_flush_begin=True, core_device=core_device)
|
||||
cache_device.full_path = cache_device_link.get_target()
|
||||
core_device.full_path = core_device_link.get_target()
|
||||
cache_device.system_path = cache_device_link.get_target()
|
||||
core_device.system_path = core_device_link.get_target()
|
||||
|
||||
with TestRun.step("Copy file from core and check if current md5sum is different than "
|
||||
"before restart."):
|
||||
@ -155,8 +155,8 @@ def test_recovery_flush_reset_fs(cache_mode, fs):
|
||||
|
||||
with TestRun.step("Hard reset DUT during data flushing."):
|
||||
power_cycle_dut(True, core_device)
|
||||
cache_device.full_path = cache_device_link.get_target()
|
||||
core_device.full_path = core_device_link.get_target()
|
||||
cache_device.system_path = cache_device_link.get_target()
|
||||
core_device.system_path = core_device_link.get_target()
|
||||
|
||||
with TestRun.step("Load cache."):
|
||||
cache = casadm.load_cache(cache_device)
|
||||
|
Loading…
Reference in New Issue
Block a user