1
0
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:
Marc Bonnici 2018-05-24 14:05:47 +01:00 committed by setrofim
parent f13e3adf99
commit 86ba51be72

View File

@ -487,6 +487,9 @@ class Runner(object):
if self.context.reboot_policy.reboot_on_each_job: if self.context.reboot_policy.reboot_on_each_job:
self.logger.info('Rebooting on new job.') self.logger.info('Rebooting on new job.')
self.context.tm.target.reboot() 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() context.tm.start()
self.do_run_job(job, context) self.do_run_job(job, context)