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:
wlauto
@ -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.'))
|
||||
|
Reference in New Issue
Block a user