Fix imports
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
#
|
||||
# Copyright(c) 2019-2022 Intel Corporation
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
import pytest
|
||||
|
||||
import test_tools.fs_tools
|
||||
from api.cas import casadm
|
||||
from api.cas.core import CoreStatus
|
||||
from core.test_run import TestRun
|
||||
@@ -90,7 +90,7 @@ def test_core_pool_exclusive_open():
|
||||
core_disk = TestRun.disks["core"]
|
||||
core_disk.create_partitions([Size(1, Unit.GibiByte)])
|
||||
core_dev = core_disk.partitions[0]
|
||||
test_tools.fs_utils.create_filesystem(Filesystem.ext4)
|
||||
core_dev.create_filesystem(Filesystem.ext4)
|
||||
cache_id = 1
|
||||
core_id = 1
|
||||
|
||||
@@ -127,7 +127,7 @@ def test_core_pool_exclusive_open():
|
||||
with TestRun.step("Check if it is impossible to make filesystem on the core device "
|
||||
"from core pool."):
|
||||
try:
|
||||
test_tools.fs_utils.create_filesystem(Filesystem.ext4, force=False)
|
||||
core_dev.create_filesystem(Filesystem.ext4, force=False)
|
||||
TestRun.fail("Successfully created filesystem on core from core pool, "
|
||||
"this is unexpected behaviour.")
|
||||
except Exception:
|
||||
|
Reference in New Issue
Block a user