[live-images] Set type to raw-xz for appliances
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
parent
456fbb8812
commit
ca7c78d98c
@ -280,7 +280,7 @@ class CreateLiveImageThread(WorkerThread):
|
||||
def _add_to_images(self, compose, variant, arch, type, format, path):
|
||||
"""Adds the image to images.json"""
|
||||
img = Image(compose.im)
|
||||
img.type = type
|
||||
img.type = 'raw-xz' if type == 'appliance' else type
|
||||
img.format = format
|
||||
img.path = os.path.relpath(path, compose.paths.compose.topdir())
|
||||
img.mtime = get_mtime(path)
|
||||
|
@ -444,7 +444,7 @@ class TestCreateLiveImageThread(PungiTestCase):
|
||||
release=None,
|
||||
ksurl=None)])
|
||||
|
||||
self.assertEqual(Image.return_value.type, 'appliance')
|
||||
self.assertEqual(Image.return_value.type, 'raw-xz')
|
||||
self.assertEqual(Image.return_value.format, 'raw.xz')
|
||||
self.assertEqual(Image.return_value.path, 'Client/amd64/iso/image-name')
|
||||
self.assertEqual(Image.return_value.size, 1024)
|
||||
|
Loading…
Reference in New Issue
Block a user