live-media: Call correct koji alias
We need call whatever command is configured in koji_profile. It's not always `koji`. Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
8418b68fb0
commit
02beb35e67
@ -165,7 +165,7 @@ class KojiWrapper(object):
|
||||
|
||||
def get_live_media_cmd(self, options, wait=True):
|
||||
# Usage: koji spin-livemedia [options] <name> <version> <target> <arch> <kickstart-file>
|
||||
cmd = ['koji', 'spin-livemedia']
|
||||
cmd = [self.executable, 'spin-livemedia']
|
||||
|
||||
for key in ('name', 'version', 'target', 'arch', 'ksfile'):
|
||||
if key not in options:
|
||||
|
@ -288,7 +288,7 @@ class LiveMediaTestCase(KojiWrapperBaseTestCase):
|
||||
}
|
||||
cmd = self.koji.get_live_media_cmd(opts)
|
||||
self.assertEqual(cmd,
|
||||
['koji', 'spin-livemedia', 'name', '1', 'tgt', 'x,y,z', 'kickstart',
|
||||
['custom-koji', 'spin-livemedia', 'name', '1', 'tgt', 'x,y,z', 'kickstart',
|
||||
'--install-tree=/mnt/os', '--wait'])
|
||||
|
||||
def test_get_live_media_cmd_full(self):
|
||||
@ -300,7 +300,7 @@ class LiveMediaTestCase(KojiWrapperBaseTestCase):
|
||||
}
|
||||
cmd = self.koji.get_live_media_cmd(opts)
|
||||
self.assertEqual(cmd[:8],
|
||||
['koji', 'spin-livemedia', 'name', '1', 'tgt', 'x,y,z', 'kickstart',
|
||||
['custom-koji', 'spin-livemedia', 'name', '1', 'tgt', 'x,y,z', 'kickstart',
|
||||
'--install-tree=/mnt/os'])
|
||||
self.assertItemsEqual(cmd[8:],
|
||||
['--repo=repo-1', '--repo=repo-2', '--skip-tag', '--scratch', '--wait',
|
||||
|
Loading…
Reference in New Issue
Block a user