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

config: parse repository config

This will give benchmark access repository specific variables.
parent 0a0aa685addf
No related branches found
No related tags found
No related merge requests found
......@@ -21,6 +21,14 @@
REPOS_DATA = sorted(d for d in os.listdir(REPOS_DIR)
if d.endswith(REPO_SUFFIX))
REPOS = [r[:-len(REPO_SUFFIX)] for r in REPOS_DATA]
REPO_DETAILS = {}
for repofilepath in REPOS_DATA:
repo_name = repofilepath[:-len(REPO_SUFFIX)]
repofilepath = os.path.join(REPOS_DIR, repofilepath)
with open(repofilepath) as repofile:
REPO_DETAILS[repo_name] = yaml.load(repofile.read())
with open(STRIP_VARIANTS_PATH) as f:
STRIP_VARIANTS = yaml.load(f.read())["partial-sets"]
......
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