1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-07-11 01:23:33 +01:00

ExecControl: Fixes bug with inheritance

Previously there was no differentiation between the same method at different
inheritance levels, therefore using the once_per_instance_decorator with super call would
prevent the super call from executing as they were considered the same
instance.
This commit is contained in:
Marc Bonnici
2017-07-05 16:07:14 +01:00
parent 3a376525cd
commit 91c49d9e95
2 changed files with 33 additions and 3 deletions

@ -59,7 +59,7 @@ def once_per_instance(method):
def wrapper(*args, **kwargs):
if __active_environment is None:
activate_environment('default')
func_id = repr(args[0])
func_id = repr(method.__hash__()) + repr(args[0])
if func_id in __environments[__active_environment]:
return
else: