mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-15 15:20:45 +01:00
commands/process: Fix initialization of ProcessContext ordering
Ensure that that ProcessContext is initialized before attempting to initialize any of the output processors.
This commit is contained in:
parent
3bd8f033d5
commit
a2eb6e96e2
@ -80,6 +80,9 @@ class ProcessCommand(Command):
|
|||||||
|
|
||||||
pc = ProcessContext()
|
pc = ProcessContext()
|
||||||
for run_output in output_list:
|
for run_output in output_list:
|
||||||
|
pc.run_output = run_output
|
||||||
|
pc.target_info = run_output.target_info
|
||||||
|
|
||||||
if not args.recursive:
|
if not args.recursive:
|
||||||
self.logger.info('Installing output processors')
|
self.logger.info('Installing output processors')
|
||||||
else:
|
else:
|
||||||
@ -108,8 +111,6 @@ class ProcessCommand(Command):
|
|||||||
pm.validate()
|
pm.validate()
|
||||||
pm.initialize(pc)
|
pm.initialize(pc)
|
||||||
|
|
||||||
pc.run_output = run_output
|
|
||||||
pc.target_info = run_output.target_info
|
|
||||||
for job_output in run_output.jobs:
|
for job_output in run_output.jobs:
|
||||||
pc.job_output = job_output
|
pc.job_output = job_output
|
||||||
pm.enable_all()
|
pm.enable_all()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user