]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
suite: use "suite_branch" for workunit if avaiable 1055/head
authorKefu Chai <kchai@redhat.com>
Thu, 30 Mar 2017 12:40:28 +0000 (20:40 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 30 Mar 2017 12:41:21 +0000 (20:41 +0800)
"git clone" allows us to clone a single branch, but not a sha1, so
prefer "branch" if it's available.

Signed-off-by: Kefu Chai <kchai@redhat.com>
teuthology/suite/placeholder.py

index 64f9a93037bfe5d0e1663e90d6cfc0e1326da8fe..73e58d1efd8a5d2cf4b84c8e7915a8e32f12e454 100644 (file)
@@ -89,6 +89,7 @@ dict_templ = {
             }
         },
         'workunit': {
+            'branch': Placeholder('suite_branch'),
             'sha1': Placeholder('suite_hash'),
         }
     },