mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-04-15 23:30:47 +01:00
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.
This commit is contained in:
parent
fc226fbb6e
commit
778bc46217
@ -30,6 +30,9 @@ class ProcessContext(object):
|
|||||||
self.target_info = None
|
self.target_info = None
|
||||||
self.job_output = None
|
self.job_output = None
|
||||||
|
|
||||||
|
def add_augmentation(self, aug):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
class ProcessCommand(Command):
|
class ProcessCommand(Command):
|
||||||
|
|
||||||
@ -92,7 +95,7 @@ class ProcessCommand(Command):
|
|||||||
|
|
||||||
pm = ProcessorManager(loader=config.plugin_cache)
|
pm = ProcessorManager(loader=config.plugin_cache)
|
||||||
for proc in config.get_processors():
|
for proc in config.get_processors():
|
||||||
pm.install(proc, None)
|
pm.install(proc, pc)
|
||||||
if args.additional_processors:
|
if args.additional_processors:
|
||||||
for proc in args.additional_processors:
|
for proc in args.additional_processors:
|
||||||
# Do not add any processors that are already present since
|
# Do not add any processors that are already present since
|
||||||
@ -100,7 +103,7 @@ class ProcessCommand(Command):
|
|||||||
try:
|
try:
|
||||||
pm.get_output_processor(proc)
|
pm.get_output_processor(proc)
|
||||||
except ValueError:
|
except ValueError:
|
||||||
pm.install(proc, None)
|
pm.install(proc, pc)
|
||||||
|
|
||||||
pm.validate()
|
pm.validate()
|
||||||
pm.initialize()
|
pm.initialize()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user