aboutsummaryrefslogtreecommitdiff
path: root/wa/framework
diff options
context:
space:
mode:
authorSergei Trofimov <sergei.trofimov@arm.com>2018-06-22 16:29:00 +0100
committerMarc Bonnici <marc.bonnici@arm.com>2018-06-22 18:04:16 +0100
commit8da911e9d56b88876f49ba074422193d5b88958a (patch)
treebbaa86fa38d86796d66a73bbe5eab5d518c130c9 /wa/framework
parent3b322a36c90ae84c3d5d27b656e4fd30f6f70c37 (diff)
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.
Diffstat (limited to 'wa/framework')
-rw-r--r--wa/framework/execution.py1
-rw-r--r--wa/framework/target/manager.py3
2 files changed, 4 insertions, 0 deletions
diff --git a/wa/framework/execution.py b/wa/framework/execution.py
index cc13e858..172499e1 100644
--- a/wa/framework/execution.py
+++ b/wa/framework/execution.py
@@ -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.')
diff --git a/wa/framework/target/manager.py b/wa/framework/target/manager.py
index e8e4f5ef..fc0c16bf 100644
--- a/wa/framework/target/manager.py
+++ b/wa/framework/target/manager.py
@@ -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