Prefix repoclosure cache dir with compose id

JIRA: COMPOSE-3922
Signed-off-by: Haibo Lin <hlin@redhat.com>
This commit is contained in:
Haibo Lin 2019-11-19 12:06:34 +08:00
parent c87d299a20
commit e0dd20dffe
2 changed files with 5 additions and 5 deletions

View file

@ -304,7 +304,7 @@ class TestRepoclosure(PungiTestCase):
def _get_repo(self, compose_id, variant, arch, path=None):
path = path or arch + '/os'
return {
'repoclosure-%s-%s.%s' % (compose_id, variant, arch): self.topdir + '/compose/%s/%s' % (variant, path)
'%s-repoclosure-%s.%s' % (compose_id, variant, arch): self.topdir + '/compose/%s/%s' % (variant, path)
}
@mock.patch('pungi.wrappers.repoclosure.get_repoclosure_cmd')