Skip to content
Snippets Groups Projects
Commit 3ce8a2515d8a authored by Pierre-Yves David's avatar Pierre-Yves David :octopus:
Browse files

upgrade-reference: explicitly detect benchrepo file with repo-prefix

Explicitly detecting this older format will help use do have improve behavior
when upgrading a reference repository that already have a "repo-prefix" entry.
parent f716863d66c0
No related branches found
No related tags found
No related merge requests found
......@@ -51,10 +51,13 @@
benchrepo_data = read_yaml(benchrepo_path)
repo_id = benchrepo_data["reference-repo"]["id"]
# Support old benchrepo files without repo-prefix
old_repo_prefix = benchrepo_data["reference-repo"].get(
"repo-prefix", repo_id
)
hadprefix = True
old_repo_prefix = benchrepo_data["reference-repo"].get("repo-prefix")
if old_repo_prefix is None:
# Support old benchrepo files without repo-prefix
hadprefix = False
old_repo_prefix = repo_id
# Compute the new stats
print("Gathering the new benchrepo data.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment