summaryrefslogtreecommitdiffstats
path: root/meta/classes/testsdk.bbclass
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2017-10-10 01:54:12 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2018-01-06 22:32:22 +0000
commitd0bed311890b8187fd3eec4d7173bb1667ff2413 (patch)
tree7ae62e7da78ee335486bc0542c72ab7f726eedf3 /meta/classes/testsdk.bbclass
parentac37bca5caa25575e75ccea3c76520c6ef114ea2 (diff)
downloadpoky-d0bed311890b8187fd3eec4d7173bb1667ff2413.tar.gz
staging.bbclass: make subprocess.check_output() capture stderr
This is very useful for debugging. The similar to testsdk.bbclass. (From OE-Core rev: de30b61b87047f61de4629f8e5bd87598de7fd0c) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testsdk.bbclass')
-rw-r--r--meta/classes/testsdk.bbclass3
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass
index 6b51a33db2..9fe8c34fc2 100644
--- a/meta/classes/testsdk.bbclass
+++ b/meta/classes/testsdk.bbclass
@@ -159,7 +159,8 @@ def testsdkext_main(d):
159 f.write('INHERIT += "own-mirrors"') 159 f.write('INHERIT += "own-mirrors"')
160 160
161 # We need to do this in case we have a minimal SDK 161 # We need to do this in case we have a minimal SDK
162 subprocess.check_output(". %s > /dev/null; devtool sdk-install meta-extsdk-toolchain" % sdk_env, cwd=sdk_dir, shell=True) 162 subprocess.check_output(". %s > /dev/null; devtool sdk-install meta-extsdk-toolchain" % \
163 sdk_env, cwd=sdk_dir, shell=True, stderr=subprocess.STDOUT)
163 164
164 tc = OESDKExtTestContext(td=test_data, logger=logger, sdk_dir=sdk_dir, 165 tc = OESDKExtTestContext(td=test_data, logger=logger, sdk_dir=sdk_dir,
165 sdk_env=sdk_env, target_pkg_manifest=target_pkg_manifest, 166 sdk_env=sdk_env, target_pkg_manifest=target_pkg_manifest,