# HG changeset patch # User Pierre-Yves David <pierre-yves.david@octobus.net> # Date 1542983094 -3600 # Fri Nov 23 15:24:54 2018 +0100 # Node ID eb6073d158e9d3434be1740e79e49d72dc5ccbfe # Parent 0a0aa685addf8a962e825d0694dca2af2e379fa6 config: parse repository config This will give benchmark access repository specific variables. diff --git a/benchmarks/utils.py b/benchmarks/utils.py --- a/benchmarks/utils.py +++ b/benchmarks/utils.py @@ -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"]