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

Core: Misc formatting fixes

This commit is contained in:
Marc Bonnici 2017-06-09 11:27:10 +01:00
parent e186056182
commit 3662686b3f

View File

@ -20,7 +20,7 @@ from collections import OrderedDict, defaultdict
from wa.framework.exception import ConfigError, NotFoundError
from wa.framework.configuration.tree import SectionNode
from wa.utils.misc import (get_article, merge_config_values)
from wa.utils.types import (identifier, integer, boolean, list_of_strings,
from wa.utils.types import (identifier, integer, boolean, list_of_strings,
list_of, toggle_set, obj_dict, enum)
from wa.utils.serializer import is_pod
@ -520,9 +520,9 @@ class Configuration(object):
def set(self, name, value, check_mandatory=True):
if name not in self.configuration:
raise ConfigError('Unknown {} configuration "{}"'.format(self.name,
raise ConfigError('Unknown {} configuration "{}"'.format(self.name,
name))
self.configuration[name].set_value(self, value,
self.configuration[name].set_value(self, value,
check_mandatory=check_mandatory)
def update_config(self, values, check_mandatory=True):
@ -939,7 +939,7 @@ class JobSpec(Configuration):
for name, cfg_point in cfg_points.iteritems():
if name in config:
value = config.pop(name)
cfg_point.set_value(workload_params, value,
cfg_point.set_value(workload_params, value,
check_mandatory=False)
if config:
msg = 'Unexpected config "{}" for "{}"'
@ -1041,7 +1041,7 @@ class JobGenerator(object):
sections.insert(0, ancestor)
for workload_entry in workload_entries:
job_spec = create_job_spec(workload_entry, sections,
job_spec = create_job_spec(workload_entry, sections,
target_manager, self.plugin_cache,
self.disabled_instruments)
if self.ids_to_run: