1
0
mirror of https://github.com/ARM-software/workload-automation.git synced 2025-06-19 06:46:12 +01:00

Added support for YAML configs

Config files (the default one in ~/.workload_automation plus ones
specified with -c) can now be written using YAML syntax as well as
Python.
This commit is contained in:
Sergei Trofimov
2015-06-18 11:34:32 +01:00
parent 90c0ed281d
commit c076a87098
3 changed files with 40 additions and 20 deletions

@ -165,10 +165,12 @@ class ExecutionContext(object):
'meta',
mandatory=True,
description='Agenda for this run.'))
for i in xrange(1, settings.config_count + 1):
self.run_artifacts.append(Artifact('config_{}'.format(i),
os.path.join(self.host_working_directory,
'config_{}.py'.format(i)),
for i, filepath in enumerate(settings.loaded_files, 1):
name = 'config_{}'.format(i)
path = os.path.join(self.host_working_directory,
name + os.path.splitext(filepath)[1])
self.run_artifacts.append(Artifact(name,
path,
kind='meta',
mandatory=True,
description='Config file used for the run.'))