mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-20 11:58:55 +00:00
framework/instrument: Fix lefover references to instrument proiorities
Update instrument proiorities to use signal proiorities instead.
This commit is contained in:
parent
703e32e511
commit
b14c3d8868
@ -158,7 +158,7 @@ SIGNAL_MAP = OrderedDict([
|
||||
|
||||
def get_priority(func):
|
||||
return getattr(getattr(func, 'im_func', func),
|
||||
'priority', Priority.normal)
|
||||
'priority', signal.CallbackPriority.normal)
|
||||
|
||||
|
||||
def priority(priority):
|
||||
@ -171,7 +171,7 @@ def priority(priority):
|
||||
else:
|
||||
if not isinstance(priority, int):
|
||||
msg = 'Invalid priorty "{}"; must be an int or one of {}'
|
||||
raise ValueError(msg.format(priority, Priority.values))
|
||||
raise ValueError(msg.format(priority, signal.CallbackPriority.values))
|
||||
wrapper.priority = level('custom', priority)
|
||||
return wrapper
|
||||
return decorate
|
||||
|
Loading…
x
Reference in New Issue
Block a user