From 86ba51be729b6fc57195caf80b963d663460b4e1 Mon Sep 17 00:00:00 2001 From: Marc Bonnici Date: Thu, 24 May 2018 14:05:47 +0100 Subject: [PATCH] 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. --- wa/framework/execution.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wa/framework/execution.py b/wa/framework/execution.py index d4502254..28579743 100644 --- a/wa/framework/execution.py +++ b/wa/framework/execution.py @@ -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)