MCNAME isn't defined outside this image so it breaks other images. Move the code to a better place since wildcards don't yet work in TESTIMAGE_FAILED_QA_ARTIFACTS.
Signed-off-by: Richard Purdie <[email protected]> --- meta/classes-recipe/testimage.bbclass | 3 --- meta/recipes-core/images/core-image-ptest.bb | 3 +++ 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass index 72282ac3624..e06c903a425 100644 --- a/meta/classes-recipe/testimage.bbclass +++ b/meta/classes-recipe/testimage.bbclass @@ -27,9 +27,6 @@ TESTIMAGE_FAILED_QA_ARTIFACTS = "\ ${sysconfdir}/version \ ${sysconfdir}/os-release" -# If some ptests are run and fail, retrieve corresponding directories -TESTIMAGE_FAILED_QA_ARTIFACTS += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${libdir}/${MCNAME}/ptest', '', d)}" - # You can set (or append to) TEST_SUITES in local.conf to select the tests # which you want to run for your target. # The test names are the module names in meta/lib/oeqa/runtime/cases. diff --git a/meta/recipes-core/images/core-image-ptest.bb b/meta/recipes-core/images/core-image-ptest.bb index 72081f938de..a2f5b92996b 100644 --- a/meta/recipes-core/images/core-image-ptest.bb +++ b/meta/recipes-core/images/core-image-ptest.bb @@ -42,3 +42,6 @@ python () { if not d.getVar("MCNAME"): raise bb.parse.SkipRecipe("No class extension set") } + +# If some ptests are run and fail, retrieve corresponding directories +TESTIMAGE_FAILED_QA_ARTIFACTS += "${@bb.utils.contains('DISTRO_FEATURES', 'ptest', '${libdir}/${MCNAME}/ptest', '', d)}"
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#202159): https://lists.openembedded.org/g/openembedded-core/message/202159 Mute This Topic: https://lists.openembedded.org/mt/107269180/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
