aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-26 17:46:53 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-26 17:57:45 +0100
commit39c56f7c280cfe6bf40ea9145f3f7060b565bc62 (patch)
treefcce112fd3713cbd8271e91027ae056521c8d8dd
parenta6ade4d24e8153920311db9a9033a7f5c430d1e4 (diff)
downloadopenembedded-core-contrib-39c56f7c280cfe6bf40ea9145f3f7060b565bc62.tar.gz
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@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/oetest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 0be61c2f0a..a7c7203201 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