mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-18 03:02:37 +01:00
output_processors: Move variable initialization to __init__
In the case of a failure in the initialization of one output_processor the remaining `initialize` methods may not get called causing variables to not be initialized correctly.
This commit is contained in:
@@ -85,8 +85,9 @@ class CpuStatesProcessor(OutputProcessor):
|
||||
"""),
|
||||
]
|
||||
|
||||
def initialize(self, context):
|
||||
self.iteration_reports = OrderedDict() # pylint: disable=attribute-defined-outside-init
|
||||
def __init__(self, *args, **kwargs):
|
||||
super(CpuStatesProcessor, self).__init__(*args, **kwargs)
|
||||
self.iteration_reports = OrderedDict()
|
||||
|
||||
def process_job_output(self, output, target_info, run_output): # pylint: disable=unused-argument
|
||||
trace_file = output.get_artifact_path('trace-cmd-txt')
|
||||
|
Reference in New Issue
Block a user