Skip to content
Snippets Groups Projects
Commit b397e894 authored by Raphaël Gomès's avatar Raphaël Gomès
Browse files

Skip tests for variant combinations that do not exist

Some repositories don't have all the variants that are tried.
Instead of getting a `KeyError`, we now just skip the
impossible combinations.
parent ffe95684
No related branches found
No related tags found
No related merge requests found
......@@ -277,7 +277,14 @@
self.project_dir = os.path.join(BASEDIR, 'mercurial')
sys.path.insert(0, self.project_dir)
self.hgpath = os.path.join(os.path.join(self.project_dir, 'hg'))
self.repo_name = self.get_repo_name(repo, **kwargs)
repo_name = self.get_repo_name(repo, **kwargs)
if repo_name is None:
raise NotImplementedError(
"This combination of parameters does not exist, skipping."
)
self.repo_name = repo_name
self.repo_path = os.path.join(REPOS_DIR, self.repo_name)
# Use a clean environ to run command
......@@ -354,7 +361,7 @@
variants[key] = value
repo_hash_key = (repo, tuple(sorted(variants.items())))
repo_name = REPO_HASH_MAP[repo_hash_key]
repo_name = REPO_HASH_MAP.get(repo_hash_key)
return repo_name
def get_asv_rev(self):
......
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