summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/oetest.py
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-28 12:00:18 +0100
commit09af262045558a17bd199fede4721b9f9f6d67eb (patch)
treef313cde19730c29f99a10dd669c56b11d3b6c3d7 /meta/lib/oeqa/oetest.py
parent5d4f39f258f5a592f1ebc70429d9ffd9d8c5c066 (diff)
downloadpoky-09af262045558a17bd199fede4721b9f9f6d67eb.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. (From OE-Core rev: 39c56f7c280cfe6bf40ea9145f3f7060b565bc62) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/oetest.py')
-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):
216 return False 216 return False
217 217
218 def _run(self, cmd): 218 def _run(self, cmd):
219 return subprocess.check_output(cmd, shell=True) 219 return subprocess.check_output(". %s; " % self.tc.sdkenv + cmd, shell=True)
220 220
221def getmodule(pos=2): 221def getmodule(pos=2):
222 # stack returns a list of tuples containg frame information 222 # stack returns a list of tuples containg frame information