From: Zack Cerza Date: Wed, 3 Dec 2014 20:12:14 +0000 (-0700) Subject: Refuse to schedule against missing suite branches X-Git-Tag: 1.1.0~1061^2~20 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=f4a9d162ce4c54bb8eb620628ada0ab043f1feee;p=teuthology.git Refuse to schedule against missing suite branches Signed-off-by: Zack Cerza --- diff --git a/teuthology/suite.py b/teuthology/suite.py index 6f842fdfbf..0ccb861514 100644 --- a/teuthology/suite.py +++ b/teuthology/suite.py @@ -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