1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2024-10-06 02:41:11 +01:00

framework/config: Rename by_spec to by_workload execution order

Rename the `by_spec` execution order to `by_workload` and update
description for clarification.
This commit is contained in:
Marc Bonnici 2018-05-22 14:51:38 +01:00
parent bea36cc398
commit d3ca3e9621
2 changed files with 7 additions and 5 deletions

View File

@ -547,7 +547,7 @@ class RunConfiguration(Configuration):
'execution_order',
kind=str,
default='by_iteration',
allowed_values=['by_iteration', 'by_spec', 'by_section', 'random'],
allowed_values=['by_iteration', 'by_section', 'by_workload', 'random'],
description='''
Defines the order in which the agenda spec will be executed. At the
moment, the following execution orders are supported:
@ -572,9 +572,11 @@ class RunConfiguration(Configuration):
X.A1, X.B1, Y.A1, Y.B1, X.A2, X.B2, Y.A2, Y.B2
``"by_spec"``
``"by_workload"``
All iterations of the first spec are executed before moving on
to the next spec. E.g. A1 A2 A3 B1 C1 C2.
to the next spec. E.g::
X.A1, X.A2, Y.A1, Y.A2, X.B1, X.B2, Y.B1, Y.B2
``"random"``
Execution order is entirely random.

View File

@ -125,7 +125,7 @@ class ConfigManager(object):
self._jobs_generated = True
def permute_by_job(specs):
def permute_by_workload(specs):
"""
This is that "classic" implementation that executes all iterations of a
workload spec before proceeding onto the next spec.
@ -205,7 +205,7 @@ def permute_randomly(specs):
permute_map = {
'by_iteration': permute_by_iteration,
'by_job': permute_by_job,
'by_workload': permute_by_workload,
'by_section': permute_by_section,
'random': permute_randomly,
}