]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
s3tests: add force-branch with higher precdence than 'branch'
authorSage Weil <sage@inktank.com>
Thu, 2 May 2013 20:47:46 +0000 (13:47 -0700)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 20:47:46 +0000 (13:47 -0700)
This way we can force a branch despite something in overrides.

Signed-off-by: Sage Weil <sage@inktank.com>
teuthology/task/s3tests.py

index af08bb5d641dadcde011eeb7d51fc8578b7c87e7..f2c4f281e6ac78d33fb5e3be85533c97ac68b355 100644 (file)
@@ -20,7 +20,9 @@ def download(ctx, config):
     log.info('Downloading s3-tests...')
     testdir = teuthology.get_testdir(ctx)
     for (client, cconf) in config.items():
-        branch = cconf.get('branch', 'master')
+        branch = cconf.get('force-branch', 'master')
+        if not branch:
+            branch = cconf.get('branch', 'master')
         sha1 = cconf.get('sha1')
         ctx.cluster.only(client).run(
             args=[