Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH] oeqa/oetest: Fix SDK command execution
@ 2015-09-26 16:46 Richard Purdie
  0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2015-09-26 16:46 UTC (permalink / raw)
  To: openembedded-core

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>

diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py
index 3816c1a..95a463b 100644
--- a/meta/lib/oeqa/oetest.py
+++ b/meta/lib/oeqa/oetest.py
@@ -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




^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-09-26 16:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-26 16:46 [PATCH] oeqa/oetest: Fix SDK command execution Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox