diff mbox series

testimage: excluding TESTIMAGE_AUTO from initramfs images

Message ID 20261009200155.1040688-1-jose.quaresma@oss.qualcomm.com
State New
Headers show
Series testimage: excluding TESTIMAGE_AUTO from initramfs images | expand

Commit Message

Jose Quaresma Oct. 9, 2026, 8:01 p.m. UTC
When TESTIMAGE_AUTO is enabled, the testimage task is automatically
executed for all images.
However, this is not the desired behavior for initramfs images,
so it is necessary to disable TESTIMAGE_AUTO in these cases.

Signed-off-by: Jose Quaresma <jose.quaresma@oss.qualcomm.com>
---
 meta/classes-recipe/testimage.bbclass | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass
index 419ad6dcb0..f21c87487f 100644
--- a/meta/classes-recipe/testimage.bbclass
+++ b/meta/classes-recipe/testimage.bbclass
@@ -520,6 +520,7 @@  def package_extraction(d, test_suites):
 testimage_main[vardepsexclude] += "BB_ORIGENV DATETIME"
 
 python () {
-    if oe.types.boolean(d.getVar("TESTIMAGE_AUTO") or "False"):
+    if oe.types.boolean(d.getVar("TESTIMAGE_AUTO") or "False") and \
+      d.getVar('IMAGE_FSTYPES') != d.getVar('INITRAMFS_FSTYPES'):
         bb.build.addtask("testimage", "do_build", "do_image_complete", d)
 }