Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 1/3] core-image-minimal: increase extra space to pass df.py oeqa runtime test
@ 2023-08-21 10:00 Mikko Rapeli
  2023-08-21 10:00 ` [PATCH 2/3] testimage.bbclass: detect slirp from TEST_RUNQEMUPARAMS Mikko Rapeli
  2023-08-21 10:00 ` [PATCH 3/3] selftest runtime_test.py: add testimage.bbclass slirp test Mikko Rapeli
  0 siblings, 2 replies; 4+ messages in thread
From: Mikko Rapeli @ 2023-08-21 10:00 UTC (permalink / raw)
  To: openembedded-core; +Cc: Mikko Rapeli

testimage.bbclass requires that ssh communication with target works
and then it runs oeqa runtime tests with that. Tests like df.py
check that there is more than 5Mb free space on the rootfs on target. Sadly
latest core-image-minimal only has 1.5 Mb free space if
ssh-server-dropbear is added to it. Thus by default, core-image-minimal
is now failing oeqa rutime df.py test.

Fix this by increasing core-image-minimal rootfs size by 5Mb if
testimage.bbclass is used which implies adding either
ssh-server-dropbear or ssh-server-openssh to the target rootfs.

Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
 meta/recipes-core/images/core-image-minimal.bb | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/recipes-core/images/core-image-minimal.bb b/meta/recipes-core/images/core-image-minimal.bb
index 84343adcd8..c04612bc15 100644
--- a/meta/recipes-core/images/core-image-minimal.bb
+++ b/meta/recipes-core/images/core-image-minimal.bb
@@ -10,3 +10,6 @@ inherit core-image
 
 IMAGE_ROOTFS_SIZE ?= "8192"
 IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("DISTRO_FEATURES", "systemd", " + 4096", "", d)}"
+
+# a bit more space needed for sshd to actually run the tests
+IMAGE_ROOTFS_EXTRA_SPACE:append = "${@bb.utils.contains("IMAGE_CLASSES", "testimage", " + 5120", "", d)}"
-- 
2.34.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-08-22  8:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-08-21 10:00 [PATCH 1/3] core-image-minimal: increase extra space to pass df.py oeqa runtime test Mikko Rapeli
2023-08-21 10:00 ` [PATCH 2/3] testimage.bbclass: detect slirp from TEST_RUNQEMUPARAMS Mikko Rapeli
2023-08-22  8:53   ` Mikko Rapeli
2023-08-21 10:00 ` [PATCH 3/3] selftest runtime_test.py: add testimage.bbclass slirp test Mikko Rapeli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox