[live-media] Respect release set in configuration

Apparently just processing the config is not sufficient we don't pass
the value to Koji.

Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2016-02-22 08:32:27 +01:00
parent 32a966fc91
commit ec03a8685a
2 changed files with 5 additions and 2 deletions

View File

@ -157,6 +157,9 @@ class KojiWrapper(object):
if 'ksurl' in options:
cmd.append('--ksurl=%s' % options['ksurl'])
if 'release' in options:
cmd.append('--release=%s' % options['release'])
if wait:
cmd.append('--wait')

View File

@ -275,7 +275,7 @@ class LiveMediaTestCase(KojiWrapperBaseTestCase):
'name': 'name', 'version': '1', 'target': 'tgt', 'arch': 'x,y,z',
'ksfile': 'kickstart', 'install_tree': '/mnt/os', 'scratch': True,
'repo': ['repo-1', 'repo-2'], 'skip_tag': True,
'ksurl': 'git://example.com/ksurl.git',
'ksurl': 'git://example.com/ksurl.git', 'release': '20160222.1',
}
cmd = self.koji.get_live_media_cmd(opts)
self.assertEqual(cmd[:8],
@ -283,7 +283,7 @@ class LiveMediaTestCase(KojiWrapperBaseTestCase):
'--install-tree=/mnt/os'])
self.assertItemsEqual(cmd[8:],
['--repo=repo-1', '--repo=repo-2', '--skip-tag', '--scratch', '--wait',
'--ksurl=git://example.com/ksurl.git'])
'--ksurl=git://example.com/ksurl.git', '--release=20160222.1'])
class LiveImageKojiWrapperTest(KojiWrapperBaseTestCase):