
- make udev, runlevel, memory and wget separate files - rename os_utils to os_tools and move it to test_tools - remove ModuleRemoveMethod and set modprobe as default - fix regex in is_kernel_module_loaded method - remove get_sys_block_path - move get_block_device_names method to disk tools Signed-off-by: Katarzyna Treder <katarzyna.treder@h-partners.com>
28 lines
722 B
Python
28 lines
722 B
Python
#
|
|
# Copyright(c) 2019-2022 Intel Corporation
|
|
# Copyright(c) 2024 Huawei Technologies Co., Ltd.
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
from core.test_run import TestRun
|
|
|
|
|
|
class Udev(object):
|
|
@staticmethod
|
|
def enable():
|
|
TestRun.LOGGER.info("Enabling udev")
|
|
TestRun.executor.run_expect_success("udevadm control --start-exec-queue")
|
|
|
|
@staticmethod
|
|
def disable():
|
|
TestRun.LOGGER.info("Disabling udev")
|
|
TestRun.executor.run_expect_success("udevadm control --stop-exec-queue")
|
|
|
|
@staticmethod
|
|
def trigger():
|
|
TestRun.executor.run_expect_success("udevadm trigger")
|
|
|
|
@staticmethod
|
|
def settle():
|
|
TestRun.executor.run_expect_success("udevadm settle")
|