Skip to contentSkip to conversation

oeqa/oetest: Fix SDK command execution

PATCH New Richard Purdie 1 participant 1 message Sep 26, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

meta/lib/oeqa/oetest.py +1 -1
index 3816c1a..95a463b 100644
@@ -203,7 +203,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