From 778bc462176a74983c881f56d6748fd80a0671ce Mon Sep 17 00:00:00 2001
From: Marc Bonnici <marc.bonnici@arm.com>
Date: Wed, 25 Jul 2018 11:25:44 +0100
Subject: [PATCH] commands/process: Add dummy method to ProcessContext

In commit d2ece we are now tracking augmentations which are used during a
run in the run_config via the context when installing augmentations.
Update the Process command and its ProcessContext with a dummy method
to relect this change.
---
 wa/commands/process.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/wa/commands/process.py b/wa/commands/process.py
index 46bf31ea..6c4aa138 100644
--- a/wa/commands/process.py
+++ b/wa/commands/process.py
@@ -30,6 +30,9 @@ class ProcessContext(object):
         self.target_info = None
         self.job_output = None
 
+    def add_augmentation(self, aug):
+        pass
+
 
 class ProcessCommand(Command):
 
@@ -92,7 +95,7 @@ class ProcessCommand(Command):
 
             pm = ProcessorManager(loader=config.plugin_cache)
             for proc in config.get_processors():
-                pm.install(proc, None)
+                pm.install(proc, pc)
             if args.additional_processors:
                 for proc in args.additional_processors:
                     # Do not add any processors that are already present since
@@ -100,7 +103,7 @@ class ProcessCommand(Command):
                     try:
                         pm.get_output_processor(proc)
                     except ValueError:
-                        pm.install(proc, None)
+                        pm.install(proc, pc)
 
             pm.validate()
             pm.initialize()