]> code.ossystems Code Review - openembedded-core.git/commit
yocto-check-layer: check for duplicate layers when finding layers
authorRoss Burton <ross@burtonini.com>
Wed, 2 Feb 2022 13:00:11 +0000 (13:00 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 5 Feb 2022 17:22:14 +0000 (17:22 +0000)
commit0df4bae4ec67d38442620fa08c839528b425e2a8
tree1f04e13b94db3acce06a3b07a50bc5b7f515bb1d
parent0ebcfb034bcad81efef5f746f0aa0b69772901a0
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.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/checklayer/__init__.py
scripts/yocto-check-layer