1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-09-02 03:12:34 +01:00

Allow setting classifiers via agenda.

This commit is contained in:
Sergei Trofimov
2015-08-17 10:37:40 +01:00
parent aa2ae03ce6
commit 25c0fd7b8b
3 changed files with 9 additions and 2 deletions

View File

@@ -70,6 +70,7 @@ class AgendaWorkloadEntry(AgendaEntry):
default=OrderedDict())
self.instrumentation = kwargs.pop('instrumentation', [])
self.flash = kwargs.pop('flash', OrderedDict())
self.classifiers = kwargs.pop('classifiers', OrderedDict())
if kwargs:
raise ConfigError('Invalid entry(ies) in workload {}: {}'.format(self.id, ', '.join(kwargs.keys())))
@@ -96,6 +97,7 @@ class AgendaSectionEntry(AgendaEntry):
default=OrderedDict())
self.instrumentation = kwargs.pop('instrumentation', [])
self.flash = kwargs.pop('flash', OrderedDict())
self.classifiers = kwargs.pop('classifiers', OrderedDict())
self.workloads = []
for w in kwargs.pop('workloads', []):
self.workloads.append(agenda.get_workload_entry(w))
@@ -128,6 +130,7 @@ class AgendaGlobalEntry(AgendaEntry):
default=OrderedDict())
self.instrumentation = kwargs.pop('instrumentation', [])
self.flash = kwargs.pop('flash', OrderedDict())
self.classifiers = kwargs.pop('classifiers', OrderedDict())
if kwargs:
raise ConfigError('Invalid entries in global section: {}'.format(kwargs))