diff options
author | Joshua Watt <JPEWhacker@gmail.com> | 2020-08-31 16:53:53 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-09-02 16:00:46 +0100 |
commit | 6736b91b2b00b546513ff5bfa256d40f084cb732 (patch) | |
tree | e4870a1deba8fffb16a92784dcdfceca46288c29 /meta/lib/oeqa/sdk/cases/buildlzip.py | |
parent | f681b2559795d6561bf0a9aed7f03ac2cb3d5f39 (diff) | |
download | poky-6736b91b2b00b546513ff5bfa256d40f084cb732.tar.gz |
oeqa: sdk: Capture stderr output
Redirect stderr to stdout when running subcommands while doing the SDK
tests. The tests will show stdout when CalledProcessError is raised,
but any output to stderr was lost.
(From OE-Core rev: 7cb4e9ab8c1596281060e94a216966060103956e)
Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk/cases/buildlzip.py')
-rw-r--r-- | meta/lib/oeqa/sdk/cases/buildlzip.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/cases/buildlzip.py b/meta/lib/oeqa/sdk/cases/buildlzip.py index 515acd2891..49ae756bf3 100644 --- a/meta/lib/oeqa/sdk/cases/buildlzip.py +++ b/meta/lib/oeqa/sdk/cases/buildlzip.py | |||
@@ -20,7 +20,7 @@ class BuildLzipTest(OESDKTestCase): | |||
20 | dirs["build"] = os.path.join(testdir, "build") | 20 | dirs["build"] = os.path.join(testdir, "build") |
21 | dirs["install"] = os.path.join(testdir, "install") | 21 | dirs["install"] = os.path.join(testdir, "install") |
22 | 22 | ||
23 | subprocess.check_output(["tar", "xf", tarball, "-C", testdir]) | 23 | subprocess.check_output(["tar", "xf", tarball, "-C", testdir], stderr=subprocess.STDOUT) |
24 | self.assertTrue(os.path.isdir(dirs["source"])) | 24 | self.assertTrue(os.path.isdir(dirs["source"])) |
25 | os.makedirs(dirs["build"]) | 25 | os.makedirs(dirs["build"]) |
26 | 26 | ||