From f4a9d162ce4c54bb8eb620628ada0ab043f1feee Mon Sep 17 00:00:00 2001 From: Zack Cerza Date: Wed, 3 Dec 2014 13:12:14 -0700 Subject: [PATCH] Refuse to schedule against missing suite branches Signed-off-by: Zack Cerza --- teuthology/suite.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 -- 2.39.5