mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 11:22:41 +01:00
framework/tm: Ensure RebootPolicy is respected with unresponsive target
Expose the RebootPolicy as an attribute of the ExectionContext and ensure that that the target is not automatically rebooted if the reboot policy is set to "Never".
This commit is contained in:
@@ -278,7 +278,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.tm.verify_target_responsive(context.reboot_policy.can_reboot)
|
||||
else:
|
||||
if context.current_job:
|
||||
context.set_status('PARTIAL')
|
||||
|
Reference in New Issue
Block a user