[OE-core] [PATCH] selftest/recipetool: skip create_git in case x11 feature is not present

Jussi Kukkonen jussi.kukkonen at intel.com
Fri Apr 7 05:57:10 UTC 2017


On 6 April 2017 at 19:41, <leonardo.sandoval.gonzalez at linux.intel.com>
wrote:

> From: Leonardo Sandoval <leonardo.sandoval.gonzalez at linux.intel.com>
>
> The unit test requires x11 as distro feature, otherwise it will fail
> while building the test requirements.
>

How about changing the test recipe to something non-x11 instead?


>
> [YOCTO #10903]
>
> Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@
> linux.intel.com>
> ---
>  meta/lib/oeqa/selftest/recipetool.py | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/meta/lib/oeqa/selftest/recipetool.py
> b/meta/lib/oeqa/selftest/recipetool.py
> index d47b9dd..7bfb02f 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
> --
> 2.10.2
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170407/59516ae6/attachment-0002.html>


More information about the Openembedded-core mailing list