summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdkext/testsdk.py
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2020-09-29 11:22:15 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-09-30 15:01:52 +0100
commitdbeac4fc4558d2b6eed6155f6a834a15c2e02715 (patch)
tree1a73883ef781d6bd93c18feede3e2028dcf67757 /meta/lib/oeqa/sdkext/testsdk.py
parent23bb87bff7b3446a8d4cd8ea6428274bedfae395 (diff)
downloadpoky-dbeac4fc4558d2b6eed6155f6a834a15c2e02715.tar.gz
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>
Diffstat (limited to 'meta/lib/oeqa/sdkext/testsdk.py')
-rw-r--r--meta/lib/oeqa/sdkext/testsdk.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdkext/testsdk.py b/meta/lib/oeqa/sdkext/testsdk.py
index c5c46df6cd..ffd185ec55 100644
--- a/meta/lib/oeqa/sdkext/testsdk.py
+++ b/meta/lib/oeqa/sdkext/testsdk.py
@@ -99,6 +99,9 @@ class TestSDKExt(TestSDKBase):
99 if not result.wasSuccessful(): 99 if not result.wasSuccessful():
100 fail = True 100 fail = True
101 101
102 # Clean the workspace/sources to avoid `devtool add' failure because of non-empty source directory
103 bb.utils.remove(sdk_dir+'workspace/sources', True)
104
102 if fail: 105 if fail:
103 bb.fatal("%s - FAILED - check the task log and the commands log" % pn) 106 bb.fatal("%s - FAILED - check the task log and the commands log" % pn)
104 107