]> code.ossystems Code Review - openembedded-core.git/commitdiff
selftest/devtool: skip test in case of poky-tiny distro
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Tue, 4 Apr 2017 04:20:08 +0000 (21:20 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 5 Apr 2017 11:36:46 +0000 (12:36 +0100)
The recipe being tested (devtoo-test-patch-gz) by devtool has dependencies (at
least libxres and virtual/libx11) that cannot be built with poky-tiny distro so
skip the test for this particular policy.

[YOCTO #10891]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oeqa/selftest/devtool.py

index d32ca28c46618efa8ca1a9caed4ca1a4cf54a295..762c7bacec5073d4c3db2a5f3c068aea0b8179ed 100644 (file)
@@ -1035,6 +1035,8 @@ class DevtoolTests(DevtoolBase):
     def test_devtool_update_recipe_local_patch_gz(self):
         # First, modify the recipe
         testrecipe = 'devtool-test-patch-gz'
+        if get_bb_var('DISTRO') == 'poky-tiny':
+            self.skipTest("The DISTRO 'poky-tiny' does not provide the dependencies needed by %s" % testrecipe)
         bb_vars = get_bb_vars(['FILE', 'SRC_URI'], testrecipe)
         recipefile = bb_vars['FILE']
         src_uri = bb_vars['SRC_URI']