1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-02-20 11:58:55 +00:00

config/core: Rename each_iteration RebootPolicy to each_job

Rename the parameter to be clearer on the effect of the policy, as this
will cause WA to reset the device for each new job it runs regardless of
the iteration number.
This commit is contained in:
Marc Bonnici 2018-05-22 17:44:10 +01:00 committed by setrofim
parent 9d8f1ec68e
commit 1a67a3a4e5

View File

@ -58,7 +58,7 @@ class RebootPolicy(object):
"""
valid_policies = ['never', 'as_needed', 'initial', 'each_iteration']
valid_policies = ['never', 'as_needed', 'initial', 'each_job']
@staticmethod
def from_pod(pod):
@ -82,8 +82,8 @@ class RebootPolicy(object):
return self.policy not in ['never', 'as_needed']
@property
def reboot_on_each_iteration(self):
return self.policy == 'each_iteration'
def reboot_on_each_job(self):
return self.policy == 'each_job'
def __str__(self):
return self.policy
@ -597,8 +597,8 @@ class RunConfiguration(Configuration):
The device will be rebooted when the execution first starts,
just before executing the first workload spec.
``"each_iteration"``
The device will be rebooted before each new iteration.
``"each_job"``
The device will be rebooted before each new job.
'''),
ConfigurationPoint(
'device',