]> code.ossystems Code Review - openembedded-core.git/commitdiff
selftest/recipetool: skip create_git in case x11 feature is not present
authorLeonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Thu, 6 Apr 2017 16:41:51 +0000 (09:41 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 8 Apr 2017 21:48:06 +0000 (22:48 +0100)
The unit test requires x11 as distro feature, otherwise it will fail
while building the test requirements.

[YOCTO #10903]

Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/recipetool.py

index d47b9dd01fb4eed3b0523c0c6eb4dc41f6f7c8a9..7bfb02f16174315bf60b77f01da2b3e1d3bd890a 100644 (file)
@@ -382,6 +382,8 @@ class RecipetoolTests(RecipetoolBase):
 
     @testcase(1194)
     def test_recipetool_create_git(self):
+        if 'x11' not in get_bb_var('DISTRO_FEATURES'):
+            self.skipTest('Test requires x11 as distro feature')
         # Ensure we have the right data in shlibs/pkgdata
         bitbake('libpng pango libx11 libxext jpeg libcheck')
         # Try adding a recipe