]> code.ossystems Code Review - openembedded-core.git/commitdiff
oeqa/oetest: Fix SDK command execution
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Sep 2015 16:46:53 +0000 (17:46 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 26 Sep 2015 16:57:45 +0000 (17:57 +0100)
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>
meta/lib/oeqa/oetest.py

index 0be61c2f0aa4c1d627da405a4ff62ba0f2816baf..a7c72032016ead592efb6a7cbb14aacd0042c575 100644 (file)
@@ -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