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

benchmark: fix exchange benchmark

parent 52b3cd5fc5e0
No related branches found
No related tags found
No related merge requests found
......@@ -297,8 +297,8 @@
expected_return_code = 1 if self.strip == "same" else 0
self.hg(*cmd, expected_return_code=expected_return_code)
def setup(self, *args):
def setup(self, repo_name, *args):
args = list(args)
revset = args.pop(-1)
self.strip = args.pop(-1)
repo_type = args.pop(-1)
......@@ -301,7 +301,7 @@
args = list(args)
revset = args.pop(-1)
self.strip = args.pop(-1)
repo_type = args.pop(-1)
super(BaseExchangeTimeSuite, self).setup(*args)
super(BaseExchangeTimeSuite, self).setup(repo_name, *args)
self._setup_repo_type(repo_type)
self._setup_revset(revset)
......@@ -306,6 +306,6 @@
self._setup_repo_type(repo_type)
self._setup_revset(revset)
repo_suffix = urllib.quote_plus(strip)
repo_suffix = urllib.quote_plus(self.strip)
self.clone_path = os.path.join(REPOS_DIR, '.cache', '{}-partial-{}'.format(
repo_name, repo_suffix))
......
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