mirror of
https://salsa.debian.org/freeipa-team/freeipa.git
synced 2026-11-03 04:40:31 -06:00
ipatests: add installer framework testing
Reviewed-By: Rob Crittenden <rcritten@redhat.com> Reviewed-By: Christian Heimes <cheimes@redhat.com> Reviewed-By: Tibor Dudlak <tdudlak@redhat.com>
This commit is contained in:
1 parent
59ef5371e1
commit
d473278621
2 files changed
+185
-2
No files matched your search
@@ -303,7 +303,11 @@ class ConfigureTool(admintool.AdminTool):
|
||||
elif not no_file:
|
||||
logger.debug('Not logging to a file')
|
||||
|
||||
def run(self):
|
||||
def init_configurator(self):
|
||||
"""Executes transformation, getting a flattened Installer object
|
||||
|
||||
:returns: common.installer.Installer object
|
||||
"""
|
||||
kwargs = {}
|
||||
|
||||
transformed_cls = self._transform(self.configurable_class)
|
||||
@@ -318,7 +322,7 @@ class ConfigureTool(admintool.AdminTool):
|
||||
kwargs['interactive'] = True
|
||||
|
||||
try:
|
||||
cfgr = transformed_cls(**kwargs)
|
||||
return transformed_cls(**kwargs)
|
||||
except core.KnobValueError as e:
|
||||
knob_cls = knob_classes[e.name]
|
||||
try:
|
||||
@@ -332,6 +336,9 @@ class ConfigureTool(admintool.AdminTool):
|
||||
except RuntimeError as e:
|
||||
self.option_parser.error(str(e))
|
||||
|
||||
def run(self):
|
||||
cfgr = self.init_configurator()
|
||||
|
||||
signal.signal(signal.SIGTERM, self.__signal_handler)
|
||||
|
||||
if self.use_private_ccache:
|
||||
|
||||
Reference in new issue
Block a user