[oe-commits] Richard Purdie : oeqa/oetest: Fix SDK command execution

git at git.openembedded.org git at git.openembedded.org
Sat Sep 26 17:14:28 UTC 2015


Module: openembedded-core.git
Branch: master-next
Commit: 39c56f7c280cfe6bf40ea9145f3f7060b565bc62
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=39c56f7c280cfe6bf40ea9145f3f7060b565bc62

Author: Richard Purdie <richard.purdie at linuxfoundation.org>
Date:   Sat Sep 26 17:46:53 2015 +0100

oeqa/oetest: Fix SDK command execution

The SDK environment wasn't being sourced when running these test
commands, meaning in some cases the cross compiler was being tested,
not the SDK tools. This is clearly not the intent so fix this by
ensuring the SDK environment is present. This fixes test failures
in multilib SDKs.

Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/lib/oeqa/oetest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 0be61c2..a7c7203 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -216,7 +216,7 @@ class oeSDKTest(oeTest):
         return False
 
     def _run(self, cmd):
-        return subprocess.check_output(cmd, shell=True)
+        return subprocess.check_output(". %s; " % self.tc.sdkenv + cmd, shell=True)
 
 def getmodule(pos=2):
     # stack returns a list of tuples containg frame information



More information about the Openembedded-commits mailing list