from teuthology import misc as teuthology
from teuthology.parallel import parallel
from teuthology.orchestra import run
+from teuthology.config import config as teuth_config
log = logging.getLogger(__name__)
if refspec is None:
refspec = 'HEAD'
+ # hack: the git_url is always ceph-ci or ceph
+ git_url = teuth_config.get_ceph_git_url()
+ repo_name = 'ceph.git'
+ if git_url.count('ceph-ci'):
+ repo_name = 'ceph-ci.git'
+
try:
for client, tests in clients.iteritems():
(remote,) = ctx.cluster.only(client).remotes.iterkeys()
],
)
for test in tests:
- log.info('fetching test %s for %s', test, client)
+ url = test.format(repo=repo_name, branch=refspec)
+ log.info('fetching test %s for %s', url, client)
assert test.endswith('.t'), 'tests must end in .t'
remote.run(
args=[
- 'wget', '-nc', '-nv', '-P', client_dir, '--', test.format(branch=refspec),
+ 'wget', '-nc', '-nv', '-P', client_dir, '--', url,
],
)