Fix imports
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#
|
||||
# Copyright(c) 2022 Intel Corporation
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
from datetime import timedelta, datetime
|
||||
|
@@ -1,5 +1,6 @@
|
||||
#
|
||||
# Copyright(c) 2022 Intel Corporation
|
||||
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
||||
# SPDX-License-Identifier: BSD-3-Clause
|
||||
#
|
||||
|
||||
@@ -1094,13 +1095,6 @@ def test_failover_io_long(cls, cleaning_policy, num_iterations):
|
||||
TestRun.executor.wait_for_connection()
|
||||
|
||||
|
||||
def check_drbd_installed(duts):
|
||||
for dut in duts:
|
||||
with TestRun.use_dut(dut):
|
||||
if not Drbd.is_installed():
|
||||
TestRun.fail(f"DRBD is not installed on DUT {dut.ip}")
|
||||
|
||||
|
||||
def prepare_devices(duts):
|
||||
for dut in duts:
|
||||
with TestRun.use_dut(dut):
|
||||
|
@@ -23,12 +23,11 @@ from storage_devices.raid import Raid, RaidConfiguration, MetadataVariant, Level
|
||||
from test_tools.dd import Dd
|
||||
from test_tools.fio.fio import Fio
|
||||
from test_tools.fio.fio_param import ReadWrite
|
||||
from test_tools.fs_tools import readlink, Filesystem
|
||||
from test_tools.fs_tools import readlink, Filesystem, create_directory
|
||||
from test_utils.drbd import Resource, Node
|
||||
from test_tools.os_tools import sync
|
||||
from test_tools.udev import Udev
|
||||
from type_def.size import Size, Unit
|
||||
from test_tools import fs_tools
|
||||
|
||||
|
||||
cache_id = 5
|
||||
@@ -145,7 +144,7 @@ def test_functional_activate_twice_round_trip(filesystem):
|
||||
primary_node.cache.set_seq_cutoff_policy(SeqCutOffPolicy.never)
|
||||
if filesystem:
|
||||
TestRun.executor.run(f"rm -rf {mountpoint}")
|
||||
fs_utils.create_directory(path=mountpoint)
|
||||
create_directory(path=mountpoint)
|
||||
core.create_filesystem(filesystem)
|
||||
core.mount(mountpoint)
|
||||
|
||||
@@ -316,7 +315,7 @@ def test_functional_activate_twice_new_host(filesystem):
|
||||
primary_node.cache.set_seq_cutoff_policy(SeqCutOffPolicy.never)
|
||||
if filesystem:
|
||||
TestRun.executor.run(f"rm -rf {mountpoint}")
|
||||
fs_utils.create_directory(path=mountpoint)
|
||||
create_directory(path=mountpoint)
|
||||
core.create_filesystem(filesystem)
|
||||
core.mount(mountpoint)
|
||||
|
||||
@@ -492,7 +491,7 @@ def failover_sequence(standby_node, drbd_resource, filesystem, core):
|
||||
if filesystem:
|
||||
with TestRun.use_dut(standby_node), TestRun.step(f"Mount core"):
|
||||
TestRun.executor.run(f"rm -rf {mountpoint}")
|
||||
fs_utils.create_directory(path=mountpoint)
|
||||
create_directory(path=mountpoint)
|
||||
core.mount(mountpoint)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user