mirror of
				https://github.com/ARM-software/workload-automation.git
				synced 2025-11-04 09:02:12 +00:00 
			
		
		
		
	config/core: Remove by_spec reboot policy
				
					
				
			This reboot policy was left over from previous versions of WA and is no longer relevant.
This commit is contained in:
		@@ -54,12 +54,11 @@ class RebootPolicy(object):
 | 
			
		||||
    :as_needed: Only reboot the device if it becomes unresponsive, or needs to be flashed, etc.
 | 
			
		||||
    :initial: The device will be rebooted when the execution first starts, just before
 | 
			
		||||
              executing the first workload spec.
 | 
			
		||||
    :each_spec: The device will be rebooted before running a new workload spec.
 | 
			
		||||
    :each_iteration: The device will be rebooted before each new iteration.
 | 
			
		||||
 | 
			
		||||
    """
 | 
			
		||||
 | 
			
		||||
    valid_policies = ['never', 'as_needed', 'initial', 'each_spec', 'each_iteration']
 | 
			
		||||
    valid_policies = ['never', 'as_needed', 'initial', 'each_iteration']
 | 
			
		||||
 | 
			
		||||
    @staticmethod
 | 
			
		||||
    def from_pod(pod):
 | 
			
		||||
@@ -82,10 +81,6 @@ class RebootPolicy(object):
 | 
			
		||||
    def perform_initial_boot(self):
 | 
			
		||||
        return self.policy not in ['never', 'as_needed']
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def reboot_on_each_spec(self):
 | 
			
		||||
        return self.policy in ['each_spec', 'each_iteration']
 | 
			
		||||
 | 
			
		||||
    @property
 | 
			
		||||
    def reboot_on_each_iteration(self):
 | 
			
		||||
        return self.policy == 'each_iteration'
 | 
			
		||||
@@ -602,12 +597,6 @@ class RunConfiguration(Configuration):
 | 
			
		||||
                The device will be rebooted when the execution first starts,
 | 
			
		||||
                just before executing the first workload spec.
 | 
			
		||||
 | 
			
		||||
            ``"each_spec"``
 | 
			
		||||
                The device will be rebooted before running a new workload spec.
 | 
			
		||||
 | 
			
		||||
                .. note:: this acts the same as each_iteration when execution order
 | 
			
		||||
                          is set to by_iteration
 | 
			
		||||
 | 
			
		||||
            ``"each_iteration"``
 | 
			
		||||
                The device will be rebooted before each new iteration.
 | 
			
		||||
            '''),
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user