lorax-wrapper: Put all log files into compose logs
Tell lorax to use a specific directory for log files so that we preserve them despite koji not having any idea about them. Fixes: #457 Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
4427769f6a
commit
9a72ea8f6d
4 changed files with 38 additions and 14 deletions
|
|
@ -41,7 +41,8 @@ class LoraxWrapperTest(unittest.TestCase):
|
|||
add_template=['t1', 't2'],
|
||||
add_arch_template=['ta1', 'ta2'],
|
||||
add_template_var=['v1', 'v2'],
|
||||
add_arch_template_var=['va1', 'va2'])
|
||||
add_arch_template_var=['va1', 'va2'],
|
||||
log_dir='/tmp')
|
||||
|
||||
self.assertEqual(cmd[0], 'lorax')
|
||||
self.assertItemsEqual(cmd[1:],
|
||||
|
|
@ -56,6 +57,7 @@ class LoraxWrapperTest(unittest.TestCase):
|
|||
'--add-arch-template=ta1', '--add-arch-template=ta2',
|
||||
'--add-template-var=v1', '--add-template-var=v2',
|
||||
'--add-arch-template-var=va1', '--add-arch-template-var=va2',
|
||||
'--logfile=/tmp/lorax.log',
|
||||
'/mnt/output_dir'])
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue