mirror of
https://github.com/ARM-software/workload-automation.git
synced 2025-09-02 19:32:34 +01: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:
@@ -58,7 +58,7 @@ class RebootPolicy(object):
|
|||||||
|
|
||||||
"""
|
"""
|
||||||
|
|
||||||
valid_policies = ['never', 'as_needed', 'initial', 'each_iteration']
|
valid_policies = ['never', 'as_needed', 'initial', 'each_job']
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def from_pod(pod):
|
def from_pod(pod):
|
||||||
@@ -82,8 +82,8 @@ class RebootPolicy(object):
|
|||||||
return self.policy not in ['never', 'as_needed']
|
return self.policy not in ['never', 'as_needed']
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def reboot_on_each_iteration(self):
|
def reboot_on_each_job(self):
|
||||||
return self.policy == 'each_iteration'
|
return self.policy == 'each_job'
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return self.policy
|
return self.policy
|
||||||
@@ -597,8 +597,8 @@ class RunConfiguration(Configuration):
|
|||||||
The device will be rebooted when the execution first starts,
|
The device will be rebooted when the execution first starts,
|
||||||
just before executing the first workload spec.
|
just before executing the first workload spec.
|
||||||
|
|
||||||
``"each_iteration"``
|
``"each_job"``
|
||||||
The device will be rebooted before each new iteration.
|
The device will be rebooted before each new job.
|
||||||
'''),
|
'''),
|
||||||
ConfigurationPoint(
|
ConfigurationPoint(
|
||||||
'device',
|
'device',
|
||||||
|
Reference in New Issue
Block a user