Merge pull request #1388 from DocentSzachista/fix-one-core-fail

test fix: add parametrize parameter as argument to function
This commit is contained in:
Karolina Rogowska 2022-10-21 09:34:53 +02:00 committed by GitHub
commit ad40f2b226
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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("core1", 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.
description: |
@ -178,7 +178,6 @@ def test_one_core_fail():
Udev.disable()
with TestRun.step("Start cache"):
cache_mode = CacheMode.WT
cache = casadm.start_cache(cache_part, cache_mode=cache_mode, force=True)
caches_count = len(casadm_parser.get_caches())
if caches_count != 1: