Skip to content

Commit bcbe45d

Browse files
committed
qa/tasks/admin_socket: subst in repo name
It is either ceph.git or ceph-ci.git. Signed-off-by: Sage Weil <sage@redhat.com>
1 parent 940b96a commit bcbe45d

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

qa/suites/powercycle/osd/tasks/admin_socket_objecter_requests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ tasks:
1010
- admin_socket:
1111
client.0:
1212
objecter_requests:
13-
test: "http://git.ceph.com/?p=ceph.git;a=blob_plain;f=src/test/admin_socket/objecter_requests;hb={branch}"
13+
test: "http://git.ceph.com/?p={repo};a=blob_plain;f=src/test/admin_socket/objecter_requests;hb={branch}"

qa/suites/rados/thrash/workloads/admin_socket_objecter_requests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@ tasks:
1010
- admin_socket:
1111
client.0:
1212
objecter_requests:
13-
test: "http://git.ceph.com/?p=ceph.git;a=blob_plain;f=src/test/admin_socket/objecter_requests;hb={branch}"
13+
test: "http://git.ceph.com/?p={repo};a=blob_plain;f=src/test/admin_socket/objecter_requests;hb={branch}"

qa/tasks/admin_socket.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from teuthology.orchestra import run
1212
from teuthology import misc as teuthology
1313
from teuthology.parallel import parallel
14+
from teuthology.config import config as teuth_config
1415

1516
log = logging.getLogger(__name__)
1617

@@ -152,8 +153,14 @@ def _run_tests(ctx, client, tests):
152153

153154
test_path = None
154155
if 'test' in config:
156+
# hack: the git_url is always ceph-ci or ceph
157+
git_url = teuth_config.get_ceph_git_url()
158+
repo_name = 'ceph.git'
159+
if git_url.count('ceph-ci'):
160+
repo_name = 'ceph-ci.git'
155161
url = config['test'].format(
156-
branch=config.get('branch', 'master')
162+
branch=config.get('branch', 'master'),
163+
repo=repo_name,
157164
)
158165
test_path = os.path.join(tmp_dir, command)
159166
remote.run(

0 commit comments

Comments
 (0)