mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 19:32:34 +01:00
Adding intialize and finalize methods to workloads that will only be invoked once per run
- added initialze and finalize methods to workloads, which were the only major extension types that did not have them - Semanatics for initialize/finalize for *all* Extensions are changed so that now they will always run at most once per run. They will not be executed twice even if invoke via istances of different subclasses (if those subclasses defined their own verions, then their versions will be invoked once each, but the base version will only get invoked once).
This commit is contained in:
@@ -140,7 +140,7 @@ class ResultProcessor(Extension):
|
||||
|
||||
"""
|
||||
|
||||
def initialize(self, context):
|
||||
def initialize(self, context): # pylint: disable=arguments-differ
|
||||
pass
|
||||
|
||||
def process_iteration_result(self, result, context):
|
||||
@@ -155,7 +155,7 @@ class ResultProcessor(Extension):
|
||||
def export_run_result(self, result, context):
|
||||
pass
|
||||
|
||||
def finalize(self, context):
|
||||
def finalize(self, context): # pylint: disable=arguments-differ
|
||||
pass
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user