]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
Use old branches as is without 'ceph-' for firefly, hammer etc
authorVasu Kulkarni <vasu@redhat.com>
Wed, 16 Sep 2015 17:21:51 +0000 (13:21 -0400)
committerVasu Kulkarni <vasu@redhat.com>
Wed, 16 Sep 2015 17:21:51 +0000 (13:21 -0400)
Signed-off-by: Vasu Kulkarni <vasu@redhat.com>
tasks/s3tests.py

index af87f399e667c8087447033fbd664468fad31a3e..3fe391622f1c58e2909c8066403664d68d1cdc2a 100644 (file)
@@ -124,12 +124,16 @@ def download(ctx, config):
     assert isinstance(config, dict)
     log.info('Downloading s3-tests...')
     testdir = teuthology.get_testdir(ctx)
+    s3_branches = [ 'giant', 'firefly', 'firefly-original', 'hammer' ]
     for (client, cconf) in config.items():
         branch = cconf.get('force-branch', None)
         if not branch:
             ceph_branch = ctx.config.get('branch')
             suite_branch = ctx.config.get('suite_branch', ceph_branch)
-            branch = cconf.get('branch', 'ceph-' + suite_branch)
+            if suite_branch in s3_branches:
+                branch = cconf.get('branch', suite_branch)
+           else:
+                branch = cconf.get('branch', 'ceph-' + suite_branch)
         if not branch:
             raise ValueError(
                 "Could not determine what branch to use for s3tests!")