mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-10-30 22:54:18 +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:
		| @@ -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) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user