[init] Don't overwrite the same log file
When creating the comps repo, use a separate log file for each variant instead of overwriting the same global file again and again. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
2ca002d602
commit
41cdf54c05
@ -276,5 +276,5 @@ def create_comps_repo(compose, arch):
|
||||
else:
|
||||
compose.log_info("[BEGIN] %s" % msg)
|
||||
cmd = repo.get_createrepo_cmd(comps_repo, update=True, database=True, skip_stat=True, outputdir=comps_repo, groupfile=comps_path, checksum=createrepo_checksum)
|
||||
run(cmd, logfile=compose.paths.log.log_file("global", "arch_repo"), show_cmd=True)
|
||||
run(cmd, logfile=compose.paths.log.log_file(arch, "comps_repo"), show_cmd=True)
|
||||
compose.log_info("[DONE ] %s" % msg)
|
||||
|
@ -159,7 +159,7 @@ class TestCreateCompsRepo(PungiTestCase):
|
||||
'--groupfile=%s/work/x86_64/comps/comps-x86_64.xml' % self.topdir,
|
||||
'--update', '--skip-stat', '--database', '--checksum=sha256',
|
||||
'--unique-md-filenames'],
|
||||
logfile=self.topdir + '/logs/global/arch_repo.global.log',
|
||||
logfile=self.topdir + '/logs/x86_64/comps_repo.x86_64.log',
|
||||
show_cmd=True)])
|
||||
|
||||
@mock.patch('pungi.phases.init.run')
|
||||
|
Loading…
Reference in New Issue
Block a user