mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 03:32:12 +02:00
testsdk.py: remove workspace/sources to avoid failure in case of multilib
When multilib is enabled, there are multiple environment scripts, and the test cases for eSDK are executed for each environment script. And we will have the following problem when executing test cases for the second environment script. ERROR: Source tree path /.../workspace/sources/librdfa already exists and is not empty So after executing test cases for one environment, we clean up the sources diretory to avoid such failure. (From OE-Core rev: f55924d8d2258ca8b60c46d78ae2de06add59798) Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -99,6 +99,9 @@ class TestSDKExt(TestSDKBase):
|
||||
if not result.wasSuccessful():
|
||||
fail = True
|
||||
|
||||
# Clean the workspace/sources to avoid `devtool add' failure because of non-empty source directory
|
||||
bb.utils.remove(sdk_dir+'workspace/sources', True)
|
||||
|
||||
if fail:
|
||||
bb.fatal("%s - FAILED - check the task log and the commands log" % pn)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user