Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/1] testsdkext: remove workspace/sources to avoid failure in case of multilib
@ 2018-05-08  8:07 Chen Qi
  2018-05-08  8:07 ` [PATCH 1/1] " Chen Qi
  0 siblings, 1 reply; 3+ messages in thread
From: Chen Qi @ 2018-05-08  8:07 UTC (permalink / raw)
  To: openembedded-core

The following changes since commit f301a3bc110608c3684c78dd62e276beea73bd94:

  settings-daemon: Drop pointless apply=yes in SRC_URI (2018-05-04 13:28:06 +0100)

are available in the git repository at:

  git://git.pokylinux.org/poky-contrib ChenQi/testsdkext-multilib-cleanup
  http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=ChenQi/testsdkext-multilib-cleanup

Chen Qi (1):
  testsdkext: remove workspace/sources to avoid failure in case of
    multilib

 meta/classes/testsdk.bbclass | 3 +++
 1 file changed, 3 insertions(+)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 1/1] testsdkext: remove workspace/sources to avoid failure in case of multilib
  2018-05-08  8:07 [PATCH 0/1] testsdkext: remove workspace/sources to avoid failure in case of multilib Chen Qi
@ 2018-05-08  8:07 ` Chen Qi
  2018-08-27  6:03   ` ChenQi
  0 siblings, 1 reply; 3+ messages in thread
From: Chen Qi @ 2018-05-08  8:07 UTC (permalink / raw)
  To: openembedded-core

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.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 meta/classes/testsdk.bbclass | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass
index 2e43343..54719a1 100644
--- a/meta/classes/testsdk.bbclass
+++ b/meta/classes/testsdk.bbclass
@@ -183,6 +183,9 @@ def testsdkext_main(d):
         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)
 
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/1] testsdkext: remove workspace/sources to avoid failure in case of multilib
  2018-05-08  8:07 ` [PATCH 1/1] " Chen Qi
@ 2018-08-27  6:03   ` ChenQi
  0 siblings, 0 replies; 3+ messages in thread
From: ChenQi @ 2018-08-27  6:03 UTC (permalink / raw)
  To: openembedded-core

ping

On 05/08/2018 04:07 PM, Chen Qi wrote:
> 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.
>
> Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
> ---
>   meta/classes/testsdk.bbclass | 3 +++
>   1 file changed, 3 insertions(+)
>
> diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass
> index 2e43343..54719a1 100644
> --- a/meta/classes/testsdk.bbclass
> +++ b/meta/classes/testsdk.bbclass
> @@ -183,6 +183,9 @@ def testsdkext_main(d):
>           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)
>   




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2018-08-27  5:58 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-05-08  8:07 [PATCH 0/1] testsdkext: remove workspace/sources to avoid failure in case of multilib Chen Qi
2018-05-08  8:07 ` [PATCH 1/1] " Chen Qi
2018-08-27  6:03   ` ChenQi

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox