Types fix - rename to type_def
Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
This commit is contained in:
parent
6970a43107
commit
c218f64c81
@ -9,7 +9,7 @@ from core.test_run import TestRun
|
||||
from test_tools import disk_utils, fs_utils
|
||||
from test_tools.disk_utils import get_device_filesystem_type, get_sysfs_path
|
||||
from test_utils.io_stats import IoStats
|
||||
from types.size import Size, Unit
|
||||
from type_def.size import Size, Unit
|
||||
|
||||
|
||||
class Device:
|
||||
|
@ -16,7 +16,7 @@ from test_tools import disk_utils, fs_utils, nvme_cli
|
||||
from test_tools.common.wait import wait
|
||||
from connection.utils.output import Output
|
||||
from test_tools.disk_finder import get_block_devices_list, resolve_to_by_id_link
|
||||
from types.size import Unit
|
||||
from type_def.size import Unit
|
||||
|
||||
|
||||
class DiskType(IntEnum):
|
||||
|
@ -13,7 +13,7 @@ from storage_devices.disk import Disk
|
||||
from test_tools.fs_utils import readlink
|
||||
from test_tools.disk_finder import resolve_to_by_id_link, get_system_disks
|
||||
from test_utils.filesystem.symlink import Symlink
|
||||
from types.size import Size
|
||||
from type_def.size import Size
|
||||
|
||||
lvm_config_path = "/etc/lvm/lvm.conf"
|
||||
filter_prototype_regex = r"^\sfilter\s=\s\["
|
||||
|
@ -5,7 +5,7 @@
|
||||
|
||||
from storage_devices.device import Device
|
||||
from test_tools import disk_utils
|
||||
from types.size import Size
|
||||
from type_def.size import Size
|
||||
|
||||
|
||||
class Partition(Device):
|
||||
|
@ -11,7 +11,7 @@ from storage_devices.disk import Disk
|
||||
from test_tools.fs_utils import readlink
|
||||
from test_tools.mdadm import Mdadm
|
||||
from test_tools.disk_finder import resolve_to_by_id_link
|
||||
from types.size import Size, Unit
|
||||
from type_def.size import Size, Unit
|
||||
|
||||
|
||||
def get_devices_paths_string(devices: [Device]):
|
||||
|
@ -11,7 +11,7 @@ from test_tools import disk_utils
|
||||
from test_tools.fs_utils import ls, parse_ls_output
|
||||
from test_utils.filesystem.symlink import Symlink
|
||||
from test_tools.os_tools import reload_kernel_module, unload_kernel_module, is_kernel_module_loaded
|
||||
from types.size import Size, Unit
|
||||
from type_def.size import Size, Unit
|
||||
|
||||
|
||||
class RamDisk(Device):
|
||||
|
@ -15,7 +15,7 @@ from core.test_run import TestRun
|
||||
from storage_devices.device import Device
|
||||
from test_utils.filesystem.directory import Directory
|
||||
from test_tools.os_tools import is_mounted, drop_caches, DropCachesMode
|
||||
from types.size import Size, Unit
|
||||
from type_def.size import Size, Unit
|
||||
|
||||
DEBUGFS_MOUNT_POINT = "/sys/kernel/debug"
|
||||
PREFIX = "trace_"
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
|
||||
import test_tools.common.linux_command as linux_comm
|
||||
import types.size as size
|
||||
import type_def.size as size
|
||||
from core.test_run import TestRun
|
||||
|
||||
|
||||
|
@ -4,7 +4,7 @@
|
||||
#
|
||||
|
||||
import test_tools.common.linux_command as linux_comm
|
||||
import types.size as size
|
||||
import type_def.size as size
|
||||
from core.test_run import TestRun
|
||||
|
||||
|
||||
|
@ -9,7 +9,7 @@ from enum import Enum
|
||||
from core.test_run import TestRun
|
||||
from storage_devices.device import Device
|
||||
from test_tools.common.linux_command import LinuxCommand
|
||||
from types.size import Size, Unit
|
||||
from type_def.size import Size, Unit
|
||||
|
||||
|
||||
class DmTarget(Enum):
|
||||
|
@ -15,7 +15,7 @@ from test_tools import fs_utils
|
||||
from test_tools.dd import Dd
|
||||
from test_tools.fs_utils import readlink, parse_ls_output, ls
|
||||
from connection.utils.output import CmdException
|
||||
from types.size import Size, Unit
|
||||
from type_def.size import Size, Unit
|
||||
|
||||
SECTOR_SIZE = 512
|
||||
|
||||
|
@ -14,7 +14,7 @@ from core.test_run import TestRun
|
||||
from storage_devices.device import Device
|
||||
from test_tools.fio.fio_result import FioResult
|
||||
from test_tools.common.linux_command import LinuxCommand
|
||||
from types.size import Size
|
||||
from type_def.size import Size
|
||||
|
||||
|
||||
class CpusAllowedPolicy(Enum):
|
||||
|
@ -4,8 +4,8 @@
|
||||
#
|
||||
|
||||
|
||||
from types.size import Size, Unit, UnitPerSecond
|
||||
from types.time import Time
|
||||
from type_def.size import Size, Unit, UnitPerSecond
|
||||
from type_def.time import Time
|
||||
|
||||
|
||||
class FioResult:
|
||||
|
@ -15,7 +15,7 @@ from aenum import IntFlag, Enum
|
||||
|
||||
from core.test_run import TestRun
|
||||
from test_tools.dd import Dd
|
||||
from types.size import Size, Unit
|
||||
from type_def.size import Size, Unit
|
||||
|
||||
|
||||
class Permissions(IntFlag):
|
||||
|
@ -5,8 +5,8 @@
|
||||
|
||||
from core.test_run import TestRun
|
||||
from storage_devices.device import Device
|
||||
from types.size import Size, Unit, UnitPerSecond
|
||||
from types.time import Time
|
||||
from type_def.size import Size, Unit, UnitPerSecond
|
||||
from type_def.time import Time
|
||||
import csv
|
||||
|
||||
|
||||
|
@ -7,7 +7,7 @@
|
||||
import re
|
||||
|
||||
from core.test_run import TestRun
|
||||
from types.size import Unit
|
||||
from type_def.size import Unit
|
||||
from test_tools.udev import Udev
|
||||
|
||||
|
||||
|
@ -6,7 +6,7 @@ from test_tools.dd import Dd
|
||||
from test_tools.fs_utils import check_if_directory_exists, create_directory
|
||||
from test_tools.os_tools import OvercommitMemoryMode, drop_caches, DropCachesMode, \
|
||||
MEMORY_MOUNT_POINT, is_mounted
|
||||
from types.size import Size, Unit
|
||||
from type_def.size import Size, Unit
|
||||
|
||||
|
||||
def disable_memory_affecting_functions():
|
||||
|
@ -8,7 +8,7 @@ from datetime import timedelta
|
||||
from test_tools import fs_utils
|
||||
from test_tools.dd import Dd
|
||||
from test_utils.filesystem.fs_item import FsItem
|
||||
from types.size import Size
|
||||
from type_def.size import Size
|
||||
|
||||
|
||||
class File(FsItem):
|
||||
|
Loading…
Reference in New Issue
Block a user