support/testing/tests: fix tests to use infra.img_round_power2()
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Mon, 21 Jun 2021 20:25:45 +0000 (22:25 +0200)
committerYann E. MORIN <yann.morin.1998@free.fr>
Sat, 26 Jun 2021 20:16:40 +0000 (22:16 +0200)
commitabe32cfdf0dda17af10d290fe1cb33c0fc60a076
tree3fd3af6cced3e6140b24d6194fc34e61594acc24
parent37a1af7a74e57e42ff6beefb8a7fdcae01a00ff7
support/testing/tests: fix tests to use infra.img_round_power2()

All the tests that are using if=sd as a Qemu options are changed to
use infra.img_round_power2() instead of simply extending the size of
the image to the next MB boundary, which is not longer sufficient with
Qemu >= 5.1.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
[yann.morin.1998@free.fr: drop now-useless imports]
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
support/testing/tests/core/test_file_capabilities.py
support/testing/tests/fs/test_squashfs.py
support/testing/tests/init/base.py