Skip to content

Commit

Permalink
Smarter s3tests branch selection
Browse files Browse the repository at this point in the history
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
  • Loading branch information
Zack Cerza committed Oct 22, 2014
1 parent 0d1f885 commit 1b8d319
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions tasks/s3tests.py
Expand Up @@ -23,7 +23,7 @@
def extract_sync_client_data(ctx, client_name):
"""
Extract synchronized client rgw zone and rgw region information.
:param ctx: Context passed to the s3tests task
:param name: Name of client that we are synching with
"""
Expand Down Expand Up @@ -117,7 +117,7 @@ def download(ctx, config):
"""
Download the s3 tests from the git builder.
Remove downloaded s3 file upon exit.
The context passed in should be identical to the context
passed in to the main task.
"""
Expand All @@ -127,7 +127,14 @@ def download(ctx, config):
for (client, cconf) in config.items():
branch = cconf.get('force-branch', None)
if not branch:
branch = cconf.get('branch', 'master')
ceph_branch = ctx.config.get('branch')
suite_branch = ctx.config.get('suite_branch', ceph_branch)
branch = cconf.get('branch', suite_branch)
if not branch:
raise ValueError(
"Could not determine what branch to use for s3tests!")
else:
log.info("Using branch '%s' for s3tests", branch)
sha1 = cconf.get('sha1')
ctx.cluster.only(client).run(
args=[
Expand Down

0 comments on commit 1b8d319

Please sign in to comment.