Skip to content

Commit

Permalink
qa/tasks/admin_socket: subst in repo name
Browse files Browse the repository at this point in the history
It is either ceph.git or ceph-ci.git.

Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit bcbe45d)
  • Loading branch information
liewegas authored and smithfarm committed Jan 3, 2017
1 parent 5b402f8 commit bbf4c27
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ tasks:
- admin_socket:
client.0:
objecter_requests:
test: "http://git.ceph.com/?p=ceph.git;a=blob_plain;f=src/test/admin_socket/objecter_requests;hb={branch}"
test: "http://git.ceph.com/?p={repo};a=blob_plain;f=src/test/admin_socket/objecter_requests;hb={branch}"
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ tasks:
- admin_socket:
client.0:
objecter_requests:
test: "http://git.ceph.com/?p=ceph.git;a=blob_plain;f=src/test/admin_socket/objecter_requests;hb={branch}"
test: "http://git.ceph.com/?p={repo};a=blob_plain;f=src/test/admin_socket/objecter_requests;hb={branch}"
9 changes: 8 additions & 1 deletion qa/tasks/admin_socket.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from teuthology.orchestra import run
from teuthology import misc as teuthology
from teuthology.parallel import parallel
from teuthology.config import config as teuth_config

log = logging.getLogger(__name__)

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

test_path = None
if 'test' in config:
# 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'
url = config['test'].format(
branch=config.get('branch', 'master')
branch=config.get('branch', 'master'),
repo=repo_name,
)
test_path = os.path.join(tmp_dir, command)
remote.run(
Expand Down

0 comments on commit bbf4c27

Please sign in to comment.