Signed-off-by: Zack Cerza <zack@redhat.com>
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