1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-01-18 12:06:08 +00:00

fw/target: add initialize() to TargetManger

Add explicit initialization to TargetManger in order to separate the
creation of the TargetManger form connection to the target.
This commit is contained in:
Sergei Trofimov 2018-06-22 16:29:00 +01:00 committed by Marc Bonnici
parent 3b322a36c9
commit 8da911e9d5
2 changed files with 4 additions and 0 deletions

View File

@ -350,6 +350,7 @@ class Executor(object):
self.target_manager = TargetManager(config.run_config.device,
config.run_config.device_config,
output.basepath)
self.target_manager.initialize()
if config_manager.run_config.reboot_policy.perform_initial_reboot:
self.logger.info('Performing inital reboot.')

View File

@ -34,9 +34,12 @@ class TargetManager(object):
self.assistant = None
self.platform_name = None
self.is_responsive = None
self.rpm = None
self.parameters = parameters
self.disconnect = parameters.get('disconnect')
def initialize(self):
self._init_target()
# If target supports hotplugging, online all cpus before perform discovery