test api: utility for removing opencas.conf file
Signed-off-by: Michal Mielewczyk <michal.mielewczyk@intel.com>
This commit is contained in:
parent
66bcc059ae
commit
aa5e11df9b
@ -1,5 +1,5 @@
|
|||||||
#
|
#
|
||||||
# Copyright(c) 2019-2021 Intel Corporation
|
# Copyright(c) 2019-2022 Intel Corporation
|
||||||
# SPDX-License-Identifier: BSD-3-Clause
|
# SPDX-License-Identifier: BSD-3-Clause
|
||||||
#
|
#
|
||||||
|
|
||||||
@ -25,6 +25,10 @@ class InitConfig:
|
|||||||
def add_core(self, cache_id, core_id, core_device: Device, extra_flags=""):
|
def add_core(self, cache_id, core_id, core_device: Device, extra_flags=""):
|
||||||
self.core_config_lines.append(CoreConfigLine(cache_id, core_id, core_device, extra_flags))
|
self.core_config_lines.append(CoreConfigLine(cache_id, core_id, core_device, extra_flags))
|
||||||
|
|
||||||
|
def remove_config_file(self):
|
||||||
|
fs_utils.remove(opencas_conf_path, force=False)
|
||||||
|
|
||||||
|
|
||||||
def save_config_file(self):
|
def save_config_file(self):
|
||||||
config_lines = []
|
config_lines = []
|
||||||
InitConfig.create_default_init_config()
|
InitConfig.create_default_init_config()
|
||||||
|
Loading…
Reference in New Issue
Block a user