f"file://{config.teuthology_path}",
teuthology_branch
)
+ else:
+ if not teuthology_branch:
+ teuthology_branch = 'main'
+ teuthology_sha1 = util.git_ls_remote(
+ 'teuthology',
+ teuthology_branch
+ )
if not teuthology_sha1:
exc = BranchNotFoundError(teuthology_branch, build_git_url('teuthology'))
- util.schedule_fail(message=str(exc), name=self.name)
+ util.schedule_fail(message=str(exc), name=self.name, dry_run=self.args.dry_run)
log.info("teuthology branch: %s %s", teuthology_branch, teuthology_sha1)
return teuthology_branch, teuthology_sha1