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:
parent
3b322a36c9
commit
8da911e9d5
@ -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.')
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user