mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-03-22 02:29:10 +00:00
framework/execution: Implement each_spec
reboot policy
Implement the `each_spec` reboot policy so that the device will be rebooted if the spec has changed.
This commit is contained in:
parent
f13e3adf99
commit
86ba51be72
@ -487,6 +487,9 @@ class Runner(object):
|
||||
if self.context.reboot_policy.reboot_on_each_job:
|
||||
self.logger.info('Rebooting on new job.')
|
||||
self.context.tm.target.reboot()
|
||||
elif self.context.reboot_policy.reboot_on_each_spec and context.spec_changed:
|
||||
self.logger.info('Rebooting on new spec.')
|
||||
self.context.tm.target.reboot()
|
||||
|
||||
context.tm.start()
|
||||
self.do_run_job(job, context)
|
||||
|
Loading…
x
Reference in New Issue
Block a user