]> 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)
committerAnuj Mittal <anuj.mittal@intel.com>
Fri, 30 Apr 2021 14:54:49 +0000 (22:54 +0800)
commit079aba1a6fdf1d4b034c2e32c952cd2c30b861ff
tree56ed0244d2c05fbe63f2aaffa77bd95d975af8e2
parentcbbdb5333d36bda3e6ce833d95960a8d4b09fbea
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: Anuj Mittal <anuj.mittal@intel.com>
scripts/yocto-check-layer