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

benchmark: clone_path as a property instead of an attribute

This make sure it is available for those who need it without being required to
initialize the object. This will be useful as we migrate exchange tests from the
"old way" (clone_path) to the "new way" (role based), see later changeset for
details.
parent c4138086cbff
No related branches found
No related tags found
No related merge requests found
......@@ -304,7 +304,10 @@
super(BaseExchangeTimeSuite, self).setup(repo, **kwargs)
self._setup_repo_type(repo_type)
self._setup_revset(revset)
self.clone_path = self.repo_path_from_id(self.partial_key)
@property
def clone_path(self):
return self.repo_path_from_id(self.partial_key)
def repo_path_from_id(self, partial_id):
"""Return the absolute path for a given partial
......
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