]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
Refuse to schedule against missing suite branches
authorZack Cerza <zack.cerza@inktank.com>
Wed, 3 Dec 2014 20:12:14 +0000 (13:12 -0700)
committerZack Cerza <zack.cerza@inktank.com>
Wed, 3 Dec 2014 20:12:14 +0000 (13:12 -0700)
Signed-off-by: Zack Cerza <zack@redhat.com>
teuthology/suite.py

index 6f842fdfbfd83795c88016df3e8e6e955bd4460e..0ccb861514cf61a076366b325c64dacccb0e1982 100644 (file)
@@ -207,7 +207,11 @@ def create_initial_config(suite, suite_branch, ceph_branch, teuthology_branch,
             teuthology_branch = 'master'
     log.info("teuthology branch: %s", teuthology_branch)
 
-    if not suite_branch:
+    if suite_branch:
+        if not get_branch_info('ceph-qa-suite', suite_branch):
+            exc = BranchNotFoundError(suite_branch, 'ceph-qa-suite.git')
+            raise schedule_fail(message=str(exc), name=name)
+    else:
         # Decide what branch of ceph-qa-suite to use
         if get_branch_info('ceph-qa-suite', ceph_branch):
             suite_branch = ceph_branch