Use parametrizex in tests
Signed-off-by: Jan Musial <jan.musial@intel.com>
This commit is contained in:
@@ -336,7 +336,7 @@ def test_preserve_data_for_inactive_device():
|
||||
cache.stop()
|
||||
|
||||
|
||||
@pytest.mark.parametrize("cache_mode", CacheMode)
|
||||
@pytest.mark.parametrizex("cache_mode", CacheMode)
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core1", DiskTypeSet([DiskType.sata, DiskType.hdd, DiskType.hdd4k]))
|
||||
@pytest.mark.require_disk("core2", DiskTypeSet([DiskType.sata, DiskType.hdd, DiskType.hdd4k]))
|
||||
|
||||
@@ -98,7 +98,7 @@ def test_udev_core():
|
||||
|
||||
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.parametrize("cache_mode", CacheMode)
|
||||
@pytest.mark.parametrizex("cache_mode", CacheMode)
|
||||
def test_udev_cache_load(cache_mode):
|
||||
"""
|
||||
title: CAS udev rule execution after unplugging and plugging cache device.
|
||||
|
||||
Reference in New Issue
Block a user