]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Also handle teuthology repo checkouts
authorZack Cerza <zack@cerza.org>
Wed, 25 Jun 2014 21:10:37 +0000 (15:10 -0600)
committerZack Cerza <zack@cerza.org>
Fri, 27 Jun 2014 16:14:07 +0000 (10:14 -0600)
Our shell script did this also.

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/suite.py

index 62a8e31601dde98905fd8e73fffbfe9789275964..e5b6f2934004c4ab8ce7dac6d9f400d07e0f6433 100644 (file)
@@ -102,7 +102,8 @@ def make_run_name(suite, ceph_branch, kernel_branch, kernel_flavor,
 
 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
     """
@@ -112,6 +113,10 @@ def fetch_suite_repo(branch, test_name):
     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,