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:
@ -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:
|
||||
|
Reference in New Issue
Block a user