mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 11:22:41 +01:00
fw/target: fix signals reboot on unresponsive
- Add "hard" parameter to TargetManager's reboot(). - Pass in context to TargetManager's reboot() and verify_target_responsive() -- this is needed for signal dispatch. - Call self.reboot() instead of self.target.reboot() when attempting a reset for unresponsive targets inside TargetManager, in order to ensure that appropriate signals are dispatched.
This commit is contained in:
committed by
setrofim
parent
e816980471
commit
2f99137ad5
@@ -259,7 +259,7 @@ class ManagedCallback(object):
|
||||
if isinstance(e, WorkloadError):
|
||||
context.set_status('FAILED')
|
||||
elif isinstance(e, TargetError) or isinstance(e, TimeoutError):
|
||||
context.tm.verify_target_responsive(context.reboot_policy.can_reboot)
|
||||
context.tm.verify_target_responsive(context)
|
||||
else:
|
||||
if context.current_job:
|
||||
context.set_status('PARTIAL')
|
||||
|
Reference in New Issue
Block a user