mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-06-29 16:57:18 +00:00
tests: Don't pass size option to image builder
As the comment in the code showed, now that https://github.com/kata-containers/osbuilder/issues/25 is fixed, it is no longer necessary to specify an image size to the image builder as it will auto-calculate it. Signed-off-by: James O. D. Hunt <james.o.hunt@intel.com>
This commit is contained in:
parent
60e1e7bc31
commit
aeb59479cb
@ -9,8 +9,6 @@ image_builder_sh="$BATS_TEST_DIRNAME/../image-builder/image_builder.sh"
|
||||
initrd_builder_sh="$BATS_TEST_DIRNAME/../initrd-builder/initrd_builder.sh"
|
||||
readonly tmp_dir=$(mktemp -t -d osbuilder-test.XXXXXXX)
|
||||
tmp_rootfs="${tmp_dir}/rootfs-osbuilder"
|
||||
#FIXME: Remove image size after https://github.com/kata-containers/osbuilder/issues/25 is fixed
|
||||
readonly image_size=400
|
||||
|
||||
setup()
|
||||
{
|
||||
@ -35,7 +33,7 @@ build_rootfs()
|
||||
|
||||
build_image()
|
||||
{
|
||||
sudo -E ${image_builder_sh} -s ${image_size} -o "${tmp_dir}/image.img" "${tmp_rootfs}"
|
||||
sudo -E ${image_builder_sh} -o "${tmp_dir}/image.img" "${tmp_rootfs}"
|
||||
}
|
||||
|
||||
build_initrd()
|
||||
|
Loading…
Reference in New Issue
Block a user