]> 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)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 3 Jul 2020 10:37:20 +0000 (11:37 +0100)
commitd603e2fd589e1edbc67c8c2fefb6337e728b9d01
treed7edbcf204dd89e1895e7f2eef19cd81a48192f3
parent6cf92e4d80e6dc85853392865a2ba6eca8bbfdb0
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>
meta/lib/oeqa/selftest/cases/devtool.py
meta/lib/oeqa/selftest/cases/recipetool.py