]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/sdkext/devtool: use finally instead of repeating cleanup
authorRoss Burton <ross.burton@intel.com>
Wed, 1 Mar 2017 12:21:34 +0000 (12:21 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 1 Mar 2017 16:11:40 +0000 (16:11 +0000)
commit9f0f6326083ee76b72b431fbfcbe12c1ab2793b2
treea62694235d5d5568484ad1292e809076b5089c76
parentc55401ba1646202fa36e4973b05dbacaa146cb16
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>
meta/classes/testsdk.bbclass
meta/lib/oeqa/sdkext/cases/devtool.py