1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-03-21 10:09:02 +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:
Marc Bonnici 2018-05-22 14:53:25 +01:00 committed by setrofim
parent c2b039ba2d
commit 9d8f1ec68e

View File

@ -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.
'''),