1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 19:32:34 +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:
Marc Bonnici
2018-09-20 17:04:55 +01:00
parent 5dcac0c8ef
commit 6632223ac5
3 changed files with 10 additions and 8 deletions

View File

@@ -108,7 +108,8 @@ class SqliteResultProcessor(OutputProcessor):
]
def initialize(self, context):
def __init__(self, *args, **kwargs):
super(SqliteResultProcessor, self).__init__(*args, **kwargs)
self._last_spec = None
self._run_oid = None
self._spec_oid = None