From: Yoann Congal Date: Thu, 16 Apr 2026 21:03:55 +0000 (+0200) Subject: oeqa/selftest/incompatible_lic: add wayland feature check for test needing it X-Git-Tag: yocto-6.0~74 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c28d66d7d8a99fad9154e4064f6d3ac5a8ca95f7;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git oeqa/selftest/incompatible_lic: add wayland feature check for test needing it When run with a distro without 'wayland' DISTRO_FEATURES: 2026-04-14 17:42:00,568 - oe-selftest - INFO - FAIL: test_core_image_full_cmdline_weston (incompatible_lic.NoGPL3InImagesTests.test_core_image_full_cmdline_weston) 2026-04-14 17:42:00,568 - oe-selftest - INFO - ---------------------------------------------------------------------- 2026-04-14 17:42:00,568 - oe-selftest - INFO - Traceback (most recent call last): File ".../openembedded-core/meta/lib/oeqa/selftest/cases/incompatible_lic.py", line 153, in test_core_image_full_cmdline_weston bitbake('core-image-full-cmdline core-image-weston') ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ ... AssertionError: Command 'bitbake core-image-full-cmdline core-image-weston' returned non-zero exit status 1: ... ERROR: Nothing PROVIDES 'core-image-weston' core-image-weston was skipped: using DISTRO 'nodistro', which is missing required DISTRO_FEATURES: 'wayland' This is caused by core-image-weston being skipped because it needs the wayland DISTRO_FEATURES. Note that this is not seen in testing because nodistro has wayland enabled by default since 2e1e7c86064 (bitbake.conf: Enable opengl ptest multiarch wayland vulkan in DISTRO_FEATURES by default, 2026-02-21) Signed-off-by: Yoann Congal Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/selftest/cases/incompatible_lic.py b/meta/lib/oeqa/selftest/cases/incompatible_lic.py index 1395e5d137..12f4d14f16 100644 --- a/meta/lib/oeqa/selftest/cases/incompatible_lic.py +++ b/meta/lib/oeqa/selftest/cases/incompatible_lic.py @@ -5,6 +5,7 @@ # from oeqa.selftest.case import OESelftestTestCase from oeqa.utils.commands import bitbake +from oeqa.core.decorator.data import skipIfNotFeature class IncompatibleLicenseTestObsolete(OESelftestTestCase): @@ -142,6 +143,7 @@ require conf/distro/include/no-gplv3.inc """) bitbake('core-image-minimal') + @skipIfNotFeature('wayland', 'Test requires wayland to be in DISTRO_FEATURES') def test_core_image_full_cmdline_weston(self): self.write_config(""" IMAGE_CLASSES += "testimage"