action='store_true', default=None,
help='destroy the cluster, if it exists',
)
+ parser.add_argument(
+ '--teuthology-git-url',
+ help=("git clone url for teuthology"),
+ )
+ parser.add_argument(
+ '--teuthology-branch',
+ help="use this teuthology branch instead of master",
+ default='master',
+ )
parser.add_argument(
'--upload',
action='store_true', default=False,
argv = []
while len(original_argv) > 0:
if original_argv[0] in ('--name',
+ '--teuthology-branch',
+ '--teuthology-git-url',
'--archive-upload',
'--archive-upload-url',
'--key-name',
else:
upload = ''
clone = teuth_config.openstack['clone']
+ if self.args.teuthology_git_url:
+ clone = ("git clone -b {branch} {url}".format(
+ branch=self.args.teuthology_branch,
+ url=self.args.teuthology_git_url))
log.debug("OPENRC = " + openrc + " " +
"TEUTHOLOGY_USERNAME = " + self.username + " " +
"CLONE_OPENSTACK = " + clone + " " +
]
archive_upload = 'user@archive:/tmp'
argv = (self.options +
- ['--upload',
+ ['--teuthology-git-url', 'TEUTHOLOGY_URL',
+ '--teuthology-branch', 'TEUTHOLOGY_BRANCH',
+ '--upload',
'--archive-upload', archive_upload] +
teuthology_argv)
args = scripts.openstack.parse_args(argv)
assert "nworkers=" + str(args.simultaneous_jobs) in l
assert "username=" + teuthology.username in l
assert "upload=--archive-upload user@archive:/tmp" in l
- assert "clone=git clone" in l
+ assert "clone=git clone -b TEUTHOLOGY_BRANCH TEUTHOLOGY_URL" in l
assert os.environ['OS_AUTH_URL'] in l
assert " ".join(teuthology_argv) in l