summaryrefslogtreecommitdiffstats
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 10:23:22 +0000
commit030f62e9c884997f8ad62507b81b20ab77026cd0 (patch)
treec574486d24e7a66cf513460a8fe7081fe13a9775 /meta
parente2ea2597c9b3b10f122fcd8d241cb52d668a32e1 (diff)
downloadpoky-030f62e9c884997f8ad62507b81b20ab77026cd0.tar.gz
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. (From OE-Core rev: bcee8c614f28b38054f5d8c1c5251b3702cf113c) Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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):
43 43
44 @testcase(1435) 44 @testcase(1435)
45 def test_read_only_image(self): 45 def test_read_only_image(self):
46 distro_features = get_bb_var('DISTRO_FEATURES')
47 if not ('x11' in distro_features and 'opengl' in distro_features):
48 self.skipTest('core-image-sato requires x11 and opengl in distro features')
46 self.write_config('IMAGE_FEATURES += "read-only-rootfs"') 49 self.write_config('IMAGE_FEATURES += "read-only-rootfs"')
47 bitbake("core-image-sato") 50 bitbake("core-image-sato")
48 # do_image will fail if there are any pending postinsts 51 # do_image will fail if there are any pending postinsts