[OE-core] [PATCH 1/1] meta/lib/oe/utils.py: properly implement both_contain()
Burton, Ross
ross.burton at intel.com
Thu Feb 26 20:07:57 UTC 2015
On 25 February 2015 at 15:15, Cristian Iorga <cristian.iorga at intel.com>
wrote:
> oe.utils.both_contain() just does a find() on the value
> rather than splitting the value and then looking in the
> list of split items. The result is that if you add a
> feature to MACHINE_FEATURES that itself has a substring
> that matches one of the values looked for when building
> COMBINED_FEATURES, you end up with an incomprehensible
> error (here with "ext2i" in MACHINE_FEATURES):
>
This looks right but you know what it needs: a test suite. Add a small
test case that demonstrates it breaking before the fix and then working
after the fix. We've been adding test cases to bitbake as bugs are found
and it's really helping demonstrate that changes work.
Ross
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20150226/29eb924f/attachment-0002.html>
More information about the Openembedded-core
mailing list