test fix: add parametrize parameter to funcion

Signed-off-by: Damian Raczkowski <damian.raczkowski@intel.com>
This commit is contained in:
Damian Raczkowski 2022-10-19 09:05:50 +02:00
parent 0ff4698f29
commit ca2b7b86cf

View File

@ -155,7 +155,7 @@ def test_one_core_release(cache_mode):
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand])) @pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
@pytest.mark.require_disk("core1", DiskTypeLowerThan("cache")) @pytest.mark.require_disk("core1", DiskTypeLowerThan("cache"))
@pytest.mark.require_disk("core2", DiskTypeLowerThan("cache")) @pytest.mark.require_disk("core2", DiskTypeLowerThan("cache"))
def test_one_core_fail(): def test_one_core_fail(cache_mode):
""" """
title: Test if OpenCAS correctly handles failure of one of multiple core devices. title: Test if OpenCAS correctly handles failure of one of multiple core devices.
description: | description: |
@ -178,7 +178,6 @@ def test_one_core_fail():
Udev.disable() Udev.disable()
with TestRun.step("Start cache"): with TestRun.step("Start cache"):
cache_mode = CacheMode.WT
cache = casadm.start_cache(cache_part, cache_mode=cache_mode, force=True) cache = casadm.start_cache(cache_part, cache_mode=cache_mode, force=True)
caches_count = len(casadm_parser.get_caches()) caches_count = len(casadm_parser.get_caches())
if caches_count != 1: if caches_count != 1: