]> git.ipfire.org Git - thirdparty/qemu.git/commit
tests/acceptance/boot_linux: Expand SD card image to power of 2
authorPhilippe Mathieu-Daudé <f4bug@amsat.org>
Tue, 7 Jul 2020 13:05:27 +0000 (15:05 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 3 Sep 2020 00:06:19 +0000 (19:06 -0500)
commitb6f4d5bf209542ee9521d36bd891ad630e7c80b4
tree80b1c1a61bdd97dd839aa03c67d727f52526de98
parentbc67d011c3a6a60fdaf790a72ab51bab263c7e9e
tests/acceptance/boot_linux: Expand SD card image to power of 2

In few commits we won't allow SD card images with invalid size
(not aligned to a power of 2). Prepare the tests: add the
pow2ceil() and image_pow2ceil_expand() methods and resize the
images (expanding) of the tests using SD cards.

Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20200713183209.26308-5-f4bug@amsat.org>
(cherry picked from commit 6a289a5ba3383e17fb47029720425bef42e424d7)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
tests/acceptance/boot_linux_console.py