[OE-core] [PATCHv2] yocto-compat-layer.py: Add script to YP Compatible Layer validation
Aníbal Limón
anibal.limon at linux.intel.com
Mon May 8 15:14:25 UTC 2017
On 05/08/2017 08:36 AM, Patrick Ohly wrote:
> On Mon, 2017-02-20 at 15:12 -0600, Aníbal Limón wrote:
>> + try:
>> + ldata = bb.parse.handle(lconf, ldata, include=True)
>> + except BaseException as exc:
>> + raise LayerError(exc)
>
> Anibal, where is this LayerError class in compatlayer/__init__.py
> supposed to come from? It doesn't get imported, leading to:
>
> File
> "/fast/work/intel-iot-refkit/openembedded-core/scripts/lib/compatlayer/__init__.py", line 45, in _get_layer_collections
> raise LayerError(exc)
> NameError: name 'LayerError' is not defined
This code is based on kergoth ones from oe-tests-scripts [1], i forget
to include the definition sorry for that but only extends exception to
determine if there is a problem on parsing the layer conf.
Anibal
[1]
https://github.com/kergoth/oe-test-scripts/blob/726fef692c7464932c2ded0fab22a875df78a31f/bb-determine-layers#L111
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: OpenPGP digital signature
URL: <http://lists.openembedded.org/pipermail/openembedded-core/attachments/20170508/358e4299/attachment-0002.sig>
More information about the Openembedded-core
mailing list