]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
qa/tasks/admin_socket: subst in repo name 12508/head
authorSage Weil <sage@redhat.com>
Thu, 15 Dec 2016 18:35:02 +0000 (13:35 -0500)
committerSage Weil <sage@redhat.com>
Thu, 15 Dec 2016 18:35:02 +0000 (13:35 -0500)
It is either ceph.git or ceph-ci.git.

Signed-off-by: Sage Weil <sage@redhat.com>
qa/suites/powercycle/osd/tasks/admin_socket_objecter_requests.yaml
qa/suites/rados/thrash/workloads/admin_socket_objecter_requests.yaml
qa/tasks/admin_socket.py

index b1ddad8d3b0b28927be15f309ef89266919ae100..3b1a8920b8523ba8aa6231c93b6a0f5b12e02b2c 100644 (file)
@@ -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}"
index eed486830c39576732f6e454f597caaecb2efd3b..8c9764ade8487550359de6633315c6fc68978899 100644 (file)
@@ -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}"
index 44235385a8ae64cb46ab1f6ea9a7d4532766a43c..3301372756be26c5c1bee2dfb9c78bcf807a2e3a 100644 (file)
@@ -11,6 +11,7 @@ import time
 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__)
 
@@ -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(