tests: fix tests after tf disk recognition refactor
Signed-off-by: Kamil Gierszewski <kamil.gierszewski@huawei.com>
This commit is contained in:

committed by
Katarzyna Treder

parent
8f5dbc997b
commit
173810ad6d
@@ -1,5 +1,6 @@
|
||||
#
|
||||
# Copyright(c) 2020-2022 Intel Corporation
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
@@ -227,7 +228,7 @@ def test_one_core_fail(cache_mode):
|
||||
casadm.stop_all_caches()
|
||||
|
||||
with TestRun.step("Plug back the first core."):
|
||||
core_dev1.plug()
|
||||
core_dev1.plug_all()
|
||||
|
||||
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@@ -311,7 +312,7 @@ def test_one_core_fail_dirty():
|
||||
casadm.stop_all_caches()
|
||||
|
||||
with TestRun.step("Plug back the first core."):
|
||||
core_dev1.plug()
|
||||
core_dev1.plug_all()
|
||||
|
||||
|
||||
def dd_builder(cache_mode: CacheMode, dev: Core, size: Size):
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#
|
||||
# Copyright(c) 2019-2022 Intel Corporation
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
@@ -92,10 +93,10 @@ def test_soft_hot_unplug_cache(cache_mode):
|
||||
casadm.stop_all_caches()
|
||||
|
||||
with TestRun.step("Plug back cache device"):
|
||||
cache_dev.plug()
|
||||
cache_dev.plug_all()
|
||||
|
||||
|
||||
@pytest.mark.parametrizex("cache_mode", CacheMode)
|
||||
@pytest.mark.parametrizex("cache_mode", [CacheMode.WO, CacheMode.WB])
|
||||
@pytest.mark.require_disk("cache", DiskTypeSet([DiskType.optane, DiskType.nand]))
|
||||
@pytest.mark.require_disk("core1", DiskTypeLowerThan("cache"))
|
||||
@pytest.mark.require_disk("core2", DiskTypeLowerThan("cache"))
|
||||
@@ -197,7 +198,7 @@ def test_soft_hot_unplug_core(cache_mode):
|
||||
casadm.stop_all_caches()
|
||||
|
||||
with TestRun.step("Plug back core device"):
|
||||
core_dev_unplugged.plug()
|
||||
core_dev_unplugged.plug_all()
|
||||
|
||||
|
||||
def fio_prepare(core):
|
||||
|
Reference in New Issue
Block a user