Skip to content

Commit

Permalink
qa/tasks/workunit: use suite branch/SHA1 when cloning workunits
Browse files Browse the repository at this point in the history
Right now it's using the Ceph branch/SHA1 but it's using the suite
Git URL.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit 1e3dc02)
  • Loading branch information
Jason Dillaman committed Oct 16, 2018
1 parent 5ccd945 commit 4c2d1d5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion qa/tasks/util/workunit.py
Expand Up @@ -61,7 +61,8 @@ def get_refspec_after_overrides(config, overrides):
# "tag", or "branch" is specified by a "workunit" tasks, we will update
# it with the information in the "workunit" sub-task nested in "overrides".
overrides = copy.deepcopy(overrides.get('workunit', {}))
refspecs = {'branch': Branch, 'tag': Refspec, 'sha1': Refspec}
refspecs = {'suite_sha1': Refspec, 'suite_branch': Branch,
'sha1': Refspec, 'tag': Refspec, 'branch': Branch}
if any(map(lambda i: i in config, refspecs.iterkeys())):
for i in refspecs.iterkeys():
overrides.pop(i, None)
Expand Down

0 comments on commit 4c2d1d5

Please sign in to comment.