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 <[email protected]> --- meta/classes-recipe/testimage.bbclass | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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) } -- 2.56.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#247484): https://lists.openembedded.org/g/openembedded-core/message/247484 Mute This Topic: https://lists.openembedded.org/mt/121678254/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
