From 1b04be0140266218c6c079a9482bc4242440b1d8 Mon Sep 17 00:00:00 2001 From: Karolina Rogowska Date: Wed, 21 Sep 2022 15:23:23 +0200 Subject: [PATCH] fix cache device path Signed-off-by: Karolina Rogowska --- .../tests/fault_injection/test_fault_power_hit_init.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/test/functional/tests/fault_injection/test_fault_power_hit_init.py b/test/functional/tests/fault_injection/test_fault_power_hit_init.py index c9b305f..5ca181b 100644 --- a/test/functional/tests/fault_injection/test_fault_power_hit_init.py +++ b/test/functional/tests/fault_injection/test_fault_power_hit_init.py @@ -1,5 +1,5 @@ # -# Copyright(c) 2020-2021 Intel Corporation +# Copyright(c) 2020-2022 Intel Corporation # SPDX-License-Identifier: BSD-3-Clause # @@ -35,14 +35,12 @@ def test_fault_power_hit_init(cache_mode): cache = casadm.start_cache(cache_dev, cache_mode, force=True) core = cache.add_core(core_dev) - cache_device_link = cache_dev.get_device_link("/dev/disk/by-id") with TestRun.step("Hard reset."): power_control = TestRun.plugin_manager.get_plugin('power_control') power_control.power_cycle() with TestRun.step("Start cache with re-initialization."): - cache_dev.path = cache_device_link.get_target() TestRun.executor.run_expect_success(cli.start_cmd( cache_dev=str(cache_dev.path), cache_mode=str(cache_mode.name.lower()),