diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2017-01-23 14:41:31 -0600 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-01-26 10:41:10 +0000 |
commit | 899680840d497343095d0e7d7264e3e278ba4602 (patch) | |
tree | 3b524f8249cc6dc6db621cae8aec2893f4619b69 | |
parent | bba1f02cb6d80279c6fed34bb18f010aa921fc1e (diff) | |
download | openembedded-core-899680840d497343095d0e7d7264e3e278ba4602.tar.gz openembedded-core-899680840d497343095d0e7d7264e3e278ba4602.tar.bz2 openembedded-core-899680840d497343095d0e7d7264e3e278ba4602.zip |
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 <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/selftest/imagefeatures.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/lib/oeqa/selftest/imagefeatures.py b/meta/lib/oeqa/selftest/imagefeatures.py index d015c49087..76896c7981 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 <daniel.alexandrux.istrate@intel.com> """ - 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') |