mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 12:59:02 +02:00
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. (From OE-Core rev: bf1b467dacf345379cd5d84a1c9b3b0d844d5c91) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
01bd284339
commit
bf59f39653
|
@ -138,6 +138,9 @@ def main():
|
|||
layer['type'] == LayerType.ERROR_BSP_DISTRO:
|
||||
continue
|
||||
|
||||
# Reset to a clean backup copy for each run
|
||||
shutil.copyfile(bblayersconf + '.backup', bblayersconf)
|
||||
|
||||
if check_bblayers(bblayersconf, layer['path'], logger):
|
||||
logger.info("%s already in %s. To capture initial signatures, layer under test should not present "
|
||||
"in BBLAYERS. Please remove %s from BBLAYERS." % (layer['name'], bblayersconf, layer['name']))
|
||||
|
|
Loading…
Reference in New Issue
Block a user