]> code.ossystems Code Review - openembedded-core.git/commit
yocto-check-layer: Avoid bug when iterating and autoadding dependencies
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Apr 2021 14:23:54 +0000 (15:23 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Apr 2021 16:53:01 +0000 (17:53 +0100)
commitbf1b467dacf345379cd5d84a1c9b3b0d844d5c91
treeb81f5c5e8512098724d077a6d46a9954a1fcf0d0
parent2bb146e7315f8080cb49a95212231ccb76a4a822
yocto-check-layer: Avoid bug when iterating and autoadding dependencies

If iterating a layer with multiple components and auto-adding dependencies
the tests can break since layers are never removed and order isn't guaranteed
to account for that.

Fix this by resetting the layer list back to the original list each time
before auto-adding the dependencies in each case.

This fixes scanning of meta-openembedded in particular where the sublayers
may not be added in order of minimal dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/yocto-check-layer