Fix imports
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#
|
||||
# Copyright(c) 2020-2021 Intel Corporation
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#
|
||||
# Copyright(c) 2022 Intel Corporation
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
@@ -7,7 +8,6 @@ import posixpath
|
||||
import random
|
||||
import pytest
|
||||
|
||||
import test_tools.fs_tools
|
||||
from api.cas import casadm
|
||||
from api.cas.cache_config import (
|
||||
CacheMode,
|
||||
@@ -105,7 +105,7 @@ def test_change_cleaning_policy_during_io_fs(filesystem):
|
||||
cache = casadm.start_cache(cache_dev.partitions[0], CacheMode.WB, force=True)
|
||||
|
||||
with TestRun.step(f"Create filesystem on core device"):
|
||||
test_tools.fs_utils.create_filesystem(filesystem)
|
||||
core_dev.create_filesystem(filesystem)
|
||||
|
||||
with TestRun.step(f"Add core to the cache"):
|
||||
core = cache.add_core(core_dev)
|
||||
|
@@ -1,9 +1,11 @@
|
||||
#
|
||||
# Copyright(c) 2019-2021 Intel Corporation
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
import pytest
|
||||
|
||||
from datetime import timedelta
|
||||
|
||||
from api.cas import casadm, casadm_parser
|
||||
|
@@ -1,11 +1,14 @@
|
||||
#
|
||||
# Copyright(c) 2020-2021 Intel Corporation
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
import time
|
||||
import pytest
|
||||
|
||||
from datetime import timedelta
|
||||
|
||||
from api.cas import casadm, casadm_parser
|
||||
from api.cas.cache_config import CacheLineSize, CacheMode, CleaningPolicy, CacheModeTrait
|
||||
from api.cas.init_config import InitConfig
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#
|
||||
# Copyright(c) 2019-2021 Intel Corporation
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
@@ -11,8 +12,7 @@ from api.cas.cache_config import CacheMode
|
||||
from api.cas.init_config import InitConfig
|
||||
from storage_devices.disk import DiskType, DiskTypeSet, DiskTypeLowerThan
|
||||
from core.test_run import TestRun
|
||||
from test_tools import fs_tools
|
||||
from test_tools.fs_tools import Filesystem
|
||||
from test_tools.fs_tools import Filesystem, create_random_test_file
|
||||
from type_def.size import Size, Unit
|
||||
|
||||
iterations_per_config = 50
|
||||
@@ -293,7 +293,7 @@ def prepare_with_file_creation(config):
|
||||
core = cache.add_core(core_dev)
|
||||
core.create_filesystem(Filesystem.ext3)
|
||||
core.mount(mount_point)
|
||||
file = fs_utils.create_random_test_file(test_file_path)
|
||||
file = create_random_test_file(test_file_path)
|
||||
file_md5sum = file.md5sum()
|
||||
core.unmount()
|
||||
return cache, core, file, file_md5sum
|
||||
|
Reference in New Issue
Block a user