]> code.ossystems Code Review - openembedded-core.git/commitdiff
eSDK.py: unset BBPATH and BUILDDIR to avoid eSDK failure
authorChen Qi <Qi.Chen@windriver.com>
Tue, 22 Jan 2019 09:09:50 +0000 (17:09 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 24 Jan 2019 17:45:18 +0000 (17:45 +0000)
When executing eSDK test case, the following error appears.

  WARNING: attempting to use the extensible SDK in an environment
      set up to run bitbake - this may lead to unexpected
   results. Please source this script in a new shell session
   instead.

  FileExistsError: [Errno 17] File exists: '/.../tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/selftest-esdk-fcuyzsqu/tmp/sysroots/x86_64/bin/pigz' -> '/.../tmp/hosttools/pigz'

So unset these two vars to avoid messing things up.

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/selftest/cases/eSDK.py

index 8e3a43d1c0d10c6350aeb1b3117556de6076796d..8eb6ec660ce6806fd85c807a1bddf0233df76935 100644 (file)
@@ -32,7 +32,7 @@ class oeSDKExtSelfTest(OESelftestTestCase):
         if not 'shell' in options:
             options['shell'] = True
 
-        runCmd("cd %s; . %s; %s" % (tmpdir_eSDKQA, env_eSDK, cmd), **options)
+        runCmd("cd %s; unset BBPATH; unset BUILDDIR; . %s; %s" % (tmpdir_eSDKQA, env_eSDK, cmd), **options)
 
     @staticmethod
     def generate_eSDK(image):