[Buildroot] [git commit branch/2021.08.x] support/testing: test_ubi: add image format on the qemu command line
Peter Korsgaard
peter at korsgaard.com
Mon Oct 25 08:35:12 UTC 2021
commit: https://git.buildroot.net/buildroot/commit/?id=68a2171ffcbfa2ede44b784ccf1815484fd86c15
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2021.08.x
Adding the Image format on the Qemu command line avoid this warning:
"WARNING: Image format was not specified for 'output/TestUbi/images/rootfs.ubi' and probing guessed raw.
Automatically detecting the format is dangerous for raw images, write operations on block 0 will be restricted.
Specify the 'raw' format explicitly to remove the restrictions."
Signed-off-by: Romain Naour <romain.naour at gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
(cherry picked from commit 1ab2dd6aa5cf5170aee0bc761d05c387b8c69040)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
support/testing/tests/fs/test_ubi.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/support/testing/tests/fs/test_ubi.py b/support/testing/tests/fs/test_ubi.py
index 8148e5f336..eeb55b1d59 100644
--- a/support/testing/tests/fs/test_ubi.py
+++ b/support/testing/tests/fs/test_ubi.py
@@ -32,7 +32,7 @@ class TestUbi(infra.basetest.BRTest):
kernel_cmdline=["root=ubi0:rootfs",
"ubi.mtd=0",
"rootfstype=ubifs"],
- options=["-drive", "file={},if=pflash".format(img)])
+ options=["-drive", "file={},if=pflash,format=raw".format(img)])
self.emulator.login()
cmd = "mount | grep 'ubi0:rootfs on / type ubifs'"
_, exit_code = self.emulator.run(cmd)
More information about the buildroot
mailing list