poky/scripts/lib/checklayer
Ross Burton 8463a37d70 yocto-check-layer: check for duplicate layers when finding layers
detect_layers() is very greedy and if it recurses into poky or bitbake
it will find the test suite layers, such as
bitbake/lib/layerindexlib/tests/testdata/layer4. This is a dummy layer
which claims to be openembedded-layer, so if the real openembedded-layer
is a dependency then layer4 may be used instead, which will cause
errors: initially because it's only compatible with Sumo, but later
because it doesn't contain any recipes.

Add a check that the set of layers we've found doesn't contain any
duplicate collection names with different patterns, and abort if that is
the case as the test will be non-deterministic.

(From OE-Core rev: 0df4bae4ec67d38442620fa08c839528b425e2a8)

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2022-02-05 17:46:05 +00:00
..
cases yocto-check-layer: Relax README case checks 2021-12-04 23:39:52 +00:00
__init__.py yocto-check-layer: check for duplicate layers when finding layers 2022-02-05 17:46:05 +00:00
case.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00
context.py meta/lib+scripts: Convert to SPDX license headers 2019-05-09 16:31:55 +01:00