1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-03 11:52:36 +01:00

framework/output: add target_info to RunOutput

Make TargetInfo an attribute of run output, replacing the read/write
methods for the targetfile. Instead, always load it on creation, if
targetfile exists (useful for external scripts), and have a method to
set it after creation (uselful during WA run, where the output is
created before connecting to the target).
This commit is contained in:
Sergei Trofimov
2017-12-13 11:43:40 +00:00
committed by marcbonnici
parent 3ab0aa04de
commit 4a239790d2
2 changed files with 6 additions and 7 deletions

View File

@@ -290,7 +290,7 @@ class Executor(object):
self.target_manager = TargetManager(config.run_config.device,
config.run_config.device_config,
output.basepath)
output.write_target_info(self.target_manager.get_target_info())
output.set_target_info(self.target_manager.get_target_info())
self.logger.info('Initializing execution context')
context = ExecutionContext(config_manager, self.target_manager, output)