summaryrefslogtreecommitdiffstats
path: root/meta/classes/testsdk.bbclass
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2017-03-01 12:21:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-01 16:11:40 +0000
commit9f0f6326083ee76b72b431fbfcbe12c1ab2793b2 (patch)
treea62694235d5d5568484ad1292e809076b5089c76 /meta/classes/testsdk.bbclass
parentc55401ba1646202fa36e4973b05dbacaa146cb16 (diff)
downloadopenembedded-core-9f0f6326083ee76b72b431fbfcbe12c1ab2793b2.tar.gz
openembedded-core-9f0f6326083ee76b72b431fbfcbe12c1ab2793b2.tar.bz2
openembedded-core-9f0f6326083ee76b72b431fbfcbe12c1ab2793b2.zip
oeqa/sdkext/devtool: use finally instead of repeating cleanup
Use the finally: block to always to cleanup. Now that the test harness in testsdk.bbclass has monkey-patched CalledProcessException to display the output we don't need to do that in the test case. Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testsdk.bbclass')
-rw-r--r--meta/classes/testsdk.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass
index 802e57f55d..0e6949ed9f 100644
--- a/meta/classes/testsdk.bbclass
+++ b/meta/classes/testsdk.bbclass
@@ -100,7 +100,7 @@ def testsdkext_main(d):
import logging
from bb.utils import export_proxies
- from oeqa.utils import avoid_paths_in_environ, make_logger_bitbake_compatible
+ from oeqa.utils import avoid_paths_in_environ, make_logger_bitbake_compatible, subprocesstweak
from oeqa.sdkext.context import OESDKExtTestContext, OESDKExtTestContextExecutor
pn = d.getVar("PN")
@@ -109,6 +109,8 @@ def testsdkext_main(d):
# extensible sdk use network
export_proxies(d)
+ subprocesstweak.errors_have_output()
+
# extensible sdk can be contaminated if native programs are
# in PATH, i.e. use perl-native instead of eSDK one.
paths_to_avoid = [d.getVar('STAGING_DIR'),