def fetch_suite_repo(branch, test_name):
"""
- Fetch the suite repo so we can use it to build jobs
+ Fetch the suite repo (and also the teuthology repo) so that we can use it
+ to build jobs. Repos are stored in ~/src/.
:returns: The path to the repo on disk
"""
suite_repo_path = os.path.join(src_base_path,
'ceph-qa-suite_' + branch)
try:
+ checkout_repo(
+ repo_url=os.path.join(config.ceph_git_base_url, 'teuthology.git'),
+ dest_path=os.path.join(src_base_path, 'teuthology'),
+ branch='master')
checkout_repo(
repo_url=os.path.join(config.ceph_git_base_url, 'ceph-qa-suite'),
dest_path=suite_repo_path,