summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>2016-11-18 11:53:22 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-16 08:30:00 +0000
commitbcee8c614f28b38054f5d8c1c5251b3702cf113c (patch)
treeb285cd2f97dae014d7678a771318ebad2e17ac94 /meta
parentae92b72990b3ac804791b501d08126491fdddb7c (diff)
downloadopenembedded-core-bcee8c614f28b38054f5d8c1c5251b3702cf113c.tar.gz
openembedded-core-bcee8c614f28b38054f5d8c1c5251b3702cf113c.tar.bz2
openembedded-core-bcee8c614f28b38054f5d8c1c5251b3702cf113c.zip
selftest: buildoptions: skip read-only-image test depending on distro
Poky-tiny cannot build core-image-sato, so skip test (read-only-image) in this case. Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oeqa/selftest/buildoptions.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/buildoptions.py b/meta/lib/oeqa/selftest/buildoptions.py
index 9487898b07..25d14f7c7a 100644
--- a/meta/lib/oeqa/selftest/buildoptions.py
+++ b/meta/lib/oeqa/selftest/buildoptions.py
@@ -43,6 +43,9 @@ class ImageOptionsTests(oeSelfTest):
@testcase(1435)
def test_read_only_image(self):
+ distro_features = get_bb_var('DISTRO_FEATURES')
+ if not ('x11' in distro_features and 'opengl' in distro_features):
+ self.skipTest('core-image-sato requires x11 and opengl in distro features')
self.write_config('IMAGE_FEATURES += "read-only-rootfs"')
bitbake("core-image-sato")
# do_image will fail if there are any pending postinsts