1
0
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:
Marc Bonnici
2018-05-22 17:45:59 +01:00
committed by setrofim
parent 78d5b18182
commit dc41af1f3f
3 changed files with 13 additions and 7 deletions

View File

@@ -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')