diff options
author | Ross Burton <ross.burton@intel.com> | 2018-12-11 23:26:33 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-13 16:32:21 +0000 |
commit | 5e15b242a49ded354d23cff616365209d3f8588b (patch) | |
tree | c4da839539b2b99280a4b82e2ec300ba2f87dc80 /meta/lib/oeqa/sdk/cases/buildcpio.py | |
parent | 778f3ce1e66ebc517a36d8567b5debbf317be343 (diff) | |
download | poky-5e15b242a49ded354d23cff616365209d3f8588b.tar.gz |
oeqa/sdk: show output if run() fails
Use oeqa.utils.subprocesstweak to monkey-patch the subprocess exception so that
any output is shown, and remove any explicit try/catch handling that would have
hidden this.
(From OE-Core rev: 55964b33b561397287779ee474170790dfd03e85)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/buildcpio.py')
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildcpio.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildcpio.py b/meta/lib/oeqa/sdk/cases/buildcpio.py index f348ac5d90..6697b12de2 100644 --- a/meta/lib/oeqa/sdk/cases/buildcpio.py +++ b/meta/lib/oeqa/sdk/cases/buildcpio.py | |||
@@ -2,6 +2,9 @@ import unittest | |||
2 | from oeqa.sdk.case import OESDKTestCase | 2 | from oeqa.sdk.case import OESDKTestCase |
3 | from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject | 3 | from oeqa.sdk.utils.sdkbuildproject import SDKBuildProject |
4 | 4 | ||
5 | from oeqa.utils.subprocesstweak import errors_have_output | ||
6 | errors_have_output() | ||
7 | |||
5 | class BuildCpioTest(OESDKTestCase): | 8 | class BuildCpioTest(OESDKTestCase): |
6 | td_vars = ['DATETIME'] | 9 | td_vars = ['DATETIME'] |
7 | 10 | ||