tests: fix test for cleaning policy
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
This commit is contained in:
parent
17d2b9fecc
commit
df8705373c
@ -130,6 +130,7 @@ def test_cleaning_policies_in_write_through(cleaning_policy):
|
|||||||
|
|
||||||
with TestRun.step(f"Start cache in Write-Through mode with {cleaning_policy} cleaning policy"):
|
with TestRun.step(f"Start cache in Write-Through mode with {cleaning_policy} cleaning policy"):
|
||||||
cache = casadm.start_cache(cache_dev.partitions[0], CacheMode.WT, force=True)
|
cache = casadm.start_cache(cache_dev.partitions[0], CacheMode.WT, force=True)
|
||||||
|
cache.set_cleaning_policy(cleaning_policy=cleaning_policy)
|
||||||
set_cleaning_policy_params(cache, cleaning_policy)
|
set_cleaning_policy_params(cache, cleaning_policy)
|
||||||
|
|
||||||
with TestRun.step("Check for running CAS cleaner"):
|
with TestRun.step("Check for running CAS cleaner"):
|
||||||
@ -256,7 +257,7 @@ def check_cleaning_policy_operation(
|
|||||||
case CleaningPolicy.nop:
|
case CleaningPolicy.nop:
|
||||||
if (
|
if (
|
||||||
core_writes_after_wait_for_cleaning != Size.zero()
|
core_writes_after_wait_for_cleaning != Size.zero()
|
||||||
or core_writes_before_wait_for_cleaning.value != Size.zero()
|
or core_writes_before_wait_for_cleaning != Size.zero()
|
||||||
):
|
):
|
||||||
TestRun.LOGGER.error(
|
TestRun.LOGGER.error(
|
||||||
"NOP cleaning policy is not working properly! "
|
"NOP cleaning policy is not working properly! "
|
||||||
|
Loading…
Reference in New Issue
Block a user