]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/selftest: recipetool/devtool: Avoid load_plugin test race
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 2 Jul 2020 18:46:07 +0000 (19:46 +0100)
committerSteve Sakoman <steve@sakoman.com>
Tue, 7 Jul 2020 00:33:20 +0000 (14:33 -1000)
commita31c694be5267c004b691e6374cc800222f19940
tree9bee43cd1efc7901c518b50f04353c161587c67b
parent838646da741cda2059ee2bd64fd1e59980fbf945
oeqa/selftest: recipetool/devtool: Avoid load_plugin test race

This bug has plagued the autobuilder for a couple of years and we've
struggled to reproduce/debug it.

The problem is the "lib" directory in meta-poky used during the load_plugin
tests for recipetool and devtool can race and one can delete the files
from the other leading to test failures.

Deleting the lib directory only if empty will avoid this.

[YOCTO #13070]

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit d603e2fd589e1edbc67c8c2fefb6337e728b9d01)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/selftest/cases/devtool.py
meta/lib/oeqa/selftest/cases/recipetool.py