open-cas-linux/test/functional/api/cas/cas_module.py
Robert Baldyga 4fb82abeca Move OCL tests from test-framework repository
Signed-off-by: Robert Baldyga <robert.baldyga@intel.com>
2019-10-18 15:27:21 +02:00

19 lines
511 B
Python

#
# Copyright(c) 2019 Intel Corporation
# SPDX-License-Identifier: BSD-3-Clause-Clear
#
from aenum import Enum
from config.configuration import cas_kernel_module, disk_kernel_module
from test_utils import os_utils
from test_utils.os_utils import ModuleRemoveMethod
class CasModule(Enum):
cache = cas_kernel_module
disk = disk_kernel_module
def reload_all_cas_modules():
os_utils.unload_kernel_module(CasModule.cache, ModuleRemoveMethod.modprobe)
os_utils.load_kernel_module(CasModule.cache)