From a2eb6e96e2a5e3bbba4cb26f786f792177eac078 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Mon, 19 Nov 2018 09:59:13 +0000 Subject: commands/process: Fix initialization of ProcessContext ordering Ensure that that ProcessContext is initialized before attempting to initialize any of the output processors. --- wa/commands/process.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/wa/commands/process.py b/wa/commands/process.py index 3ee9db1b..a1505d0b 100644 --- a/wa/commands/process.py +++ b/wa/commands/process.py @@ -80,6 +80,9 @@ class ProcessCommand(Command): pc = ProcessContext() for run_output in output_list: + pc.run_output = run_output + pc.target_info = run_output.target_info + if not args.recursive: self.logger.info('Installing output processors') else: @@ -108,8 +111,6 @@ class ProcessCommand(Command): pm.validate() pm.initialize(pc) - pc.run_output = run_output - pc.target_info = run_output.target_info for job_output in run_output.jobs: pc.job_output = job_output pm.enable_all() -- cgit v1.2.3