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

repo-scan: detect '.benchrepo' instead of looking for repository

One more step toward the new world.
parent 0ff6b592
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,8 @@
import sys
from functools import wraps
REPO_SUFFIX='.benchrepo'
BASEDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))
STRIP_VARIANTS_PATH = os.path.join(BASEDIR, "partial-sets.yaml")
REPOS_DIR = os.path.join(BASEDIR, "repos")
......@@ -11,8 +13,9 @@
BASEDIR = os.path.abspath(os.path.join(os.path.dirname(__file__), os.path.pardir))
STRIP_VARIANTS_PATH = os.path.join(BASEDIR, "partial-sets.yaml")
REPOS_DIR = os.path.join(BASEDIR, "repos")
REPOS = sorted(d for d in os.listdir(REPOS_DIR)
if os.path.isdir(os.path.join(REPOS_DIR, d, ".hg")))
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]
# TODO fix
# 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