Commit 0f350a23 authored by Lachlan's avatar Lachlan

Fix generate benchmark config

- Correction for version multiplicity.
parent 67abde29
Pipeline #54399820 passed with stages
in 49 minutes and 21 seconds
...@@ -50,12 +50,14 @@ def generate_benchmark_configuration(output_file="generated.benchmark", list_of_ ...@@ -50,12 +50,14 @@ def generate_benchmark_configuration(output_file="generated.benchmark", list_of_
yaml.dump(version_default, yaml_file, default_flow_style=False) yaml.dump(version_default, yaml_file, default_flow_style=False)
yaml_file.write('\n\n') yaml_file.write('\n\n')
configs = []
for entry in list_of_shas: for entry in list_of_shas:
version = {'versions': [{'name': str(entry), configs.append({'name': str(entry),
'base_docker_ref': docker_version, 'base_docker_ref': docker_version,
'buildstream_ref': bs_branch, 'buildstream_ref': bs_branch,
'buildstream_commit': str(entry), 'buildstream_commit': str(entry),
'buildstream_commit_date': str(entry.committed_date)}]} 'buildstream_commit_date': str(entry.committed_date)})
version = {'versions': configs}
yaml.dump(version, yaml_file, default_flow_style=False) yaml.dump(version, yaml_file, default_flow_style=False)
yaml_file.write('\n\n') yaml_file.write('\n\n')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment