summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdk/utils/sdkbuildproject.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oeqa/sdk/utils/sdkbuildproject.py')
-rw-r--r--meta/lib/oeqa/sdk/utils/sdkbuildproject.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py
index 4e251142d7..0519911e8f 100644
--- a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py
+++ b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py
@@ -42,4 +42,9 @@ class SDKBuildProject(BuildProject):
42 42
43 def _run(self, cmd): 43 def _run(self, cmd):
44 self.log("Running . %s; " % self.sdkenv + cmd) 44 self.log("Running . %s; " % self.sdkenv + cmd)
45 return subprocess.call(". %s; " % self.sdkenv + cmd, shell=True) 45 try:
46 output = subprocess.check_output(". %s; " % self.sdkenv + cmd, shell=True, stderr=subprocess.STDOUT)
47 except subprocess.CalledProcessError as exc:
48 print(exc.output.decode('utf-8'))
49 return exc.returncode
50 return 0