From: Leonardo Sandoval Date: Mon, 23 Jan 2017 20:41:31 +0000 (-0600) Subject: selftest/imagefeatures: skip weston test if required features are not present X-Git-Tag: yocto-4.0~18339 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=899680840d497343095d0e7d7264e3e278ba4602;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git selftest/imagefeatures: skip weston test if required features are not present Also, remove hard-coded features because the image already contains them. Signed-off-by: Leonardo Sandoval Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/selftest/imagefeatures.py b/meta/lib/oeqa/selftest/imagefeatures.py index d015c490878..76896c79816 100644 --- a/meta/lib/oeqa/selftest/imagefeatures.py +++ b/meta/lib/oeqa/selftest/imagefeatures.py @@ -91,9 +91,9 @@ class ImageFeatures(oeSelfTest): AutomatedBy: Daniel Istrate """ - features = 'DISTRO_FEATURES_append = " wayland"\n' - features += 'CORE_IMAGE_EXTRA_INSTALL += "wayland weston"' - self.write_config(features) + distro_features = get_bb_var('DISTRO_FEATURES') + if not ('opengl' in distro_features and 'wayland' in distro_features): + self.skipTest('neither opengl nor wayland present on DISTRO_FEATURES so core-image-weston cannot be built') # Build a core-image-weston bitbake('core-image-weston')