]> 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)
committerSteve Sakoman <steve@sakoman.com>
Mon, 3 May 2021 14:56:23 +0000 (04:56 -1000)
commit886752b6877438c16b1f27b3b05798498026e645
treed2852406b0a27b8cb0ae84ed2d587a2d21615ee1
parent9a14fb4aefb3a0bad1d1a98f44eaa10177737e04
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>
(cherry picked from commit bf1b467dacf345379cd5d84a1c9b3b0d844d5c91)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
scripts/yocto-check-layer