From: Leonardo Sandoval Date: Thu, 6 Apr 2017 16:41:51 +0000 (-0700) Subject: selftest/recipetool: skip create_git in case x11 feature is not present X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~21710 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fe8f39b5f5e7390cc46f8cb47c2503b3c5f78e2;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git selftest/recipetool: skip create_git in case x11 feature is not present The unit test requires x11 as distro feature, otherwise it will fail while building the test requirements. [YOCTO #10903] Signed-off-by: Leonardo Sandoval Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/selftest/recipetool.py b/meta/lib/oeqa/selftest/recipetool.py index d47b9dd01fb..7bfb02f1617 100644 --- a/meta/lib/oeqa/selftest/recipetool.py +++ b/meta/lib/oeqa/selftest/recipetool.py @@ -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