isos: Check maximum expected size

This patch allows the configuration to express maximum expected size for
ISOs created in createiso and extra_isos phases. If the image is larger
than this limit, a warning is emitted in test phase. The compose itself
is not affected in any way.

JIRA: COMPOSE-2824
Signed-off-by: Lubomír Sedlář <lsedlar@redhat.com>
This commit is contained in:
Lubomír Sedlář 2019-02-12 12:09:08 +01:00
parent 7693e562b1
commit 6c6d4759f5
8 changed files with 150 additions and 4 deletions

View file

@ -263,6 +263,7 @@ def add_iso_to_metadata(
compose.im.add(variant.uid, variant_arch, img)
else:
compose.im.add(variant.uid, arch, img)
return img
def run_createiso_command(runroot, num, compose, bootable, arch, cmd, mounts,