mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-02-22 04:49:00 +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):
|
def get_priority(func):
|
||||||
return getattr(getattr(func, 'im_func', func),
|
return getattr(getattr(func, 'im_func', func),
|
||||||
'priority', Priority.normal)
|
'priority', signal.CallbackPriority.normal)
|
||||||
|
|
||||||
|
|
||||||
def priority(priority):
|
def priority(priority):
|
||||||
@ -171,7 +171,7 @@ def priority(priority):
|
|||||||
else:
|
else:
|
||||||
if not isinstance(priority, int):
|
if not isinstance(priority, int):
|
||||||
msg = 'Invalid priorty "{}"; must be an int or one of {}'
|
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)
|
wrapper.priority = level('custom', priority)
|
||||||
return wrapper
|
return wrapper
|
||||||
return decorate
|
return decorate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user