On Mon, Oct 12, 2026 at 5:28 PM Richard Purdie < [email protected]> wrote:
> On Fri, 2026-10-09 at 21:01 +0100, Jose Quaresma via > lists.openembedded.org wrote: > > 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) > > } > > This looks a bit fragile as an image might use the same type as the > initramfs. > > Could we just force TESTIMAGE_AUTO off in some of the initramfs > specific classes/code? > I agree that it's a bit fragile this way; I'll look for a more robust way to do it. Jose > > Cheers, > > Richard >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#247674): https://lists.openembedded.org/g/openembedded-core/message/247674 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]] -=-=-=-=-=-=-=-=-=-=-=-
