mirror of
https://git.yoctoproject.org/poky
synced 2026-04-19 06:32:13 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
f681b25597
commit
6736b91b2b
@@ -26,7 +26,7 @@ class OESDKTestCase(OETestCase):
|
||||
return tarball
|
||||
|
||||
tarball = os.path.join(workdir, archive)
|
||||
subprocess.check_output(["wget", "-O", tarball, url])
|
||||
subprocess.check_output(["wget", "-O", tarball, url], stderr=subprocess.STDOUT)
|
||||
return tarball
|
||||
|
||||
def check_elf(self, path, target_os=None, target_arch=None):
|
||||
|
||||
@@ -30,7 +30,7 @@ class BuildAssimp(OESDKTestCase):
|
||||
dirs["build"] = os.path.join(testdir, "build")
|
||||
dirs["install"] = os.path.join(testdir, "install")
|
||||
|
||||
subprocess.check_output(["tar", "xf", tarball, "-C", testdir])
|
||||
subprocess.check_output(["tar", "xf", tarball, "-C", testdir], stderr=subprocess.STDOUT)
|
||||
self.assertTrue(os.path.isdir(dirs["source"]))
|
||||
os.makedirs(dirs["build"])
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ class BuildCpioTest(OESDKTestCase):
|
||||
dirs["build"] = os.path.join(testdir, "build")
|
||||
dirs["install"] = os.path.join(testdir, "install")
|
||||
|
||||
subprocess.check_output(["tar", "xf", tarball, "-C", testdir])
|
||||
subprocess.check_output(["tar", "xf", tarball, "-C", testdir], stderr=subprocess.STDOUT)
|
||||
self.assertTrue(os.path.isdir(dirs["source"]))
|
||||
os.makedirs(dirs["build"])
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@ class EpoxyTest(OESDKTestCase):
|
||||
dirs["build"] = os.path.join(testdir, "build")
|
||||
dirs["install"] = os.path.join(testdir, "install")
|
||||
|
||||
subprocess.check_output(["tar", "xf", tarball, "-C", testdir])
|
||||
subprocess.check_output(["tar", "xf", tarball, "-C", testdir], stderr=subprocess.STDOUT)
|
||||
self.assertTrue(os.path.isdir(dirs["source"]))
|
||||
os.makedirs(dirs["build"])
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ class GalculatorTest(OESDKTestCase):
|
||||
dirs["build"] = os.path.join(testdir, "build")
|
||||
dirs["install"] = os.path.join(testdir, "install")
|
||||
|
||||
subprocess.check_output(["tar", "xf", tarball, "-C", testdir])
|
||||
subprocess.check_output(["tar", "xf", tarball, "-C", testdir], stderr=subprocess.STDOUT)
|
||||
self.assertTrue(os.path.isdir(dirs["source"]))
|
||||
os.makedirs(dirs["build"])
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ class BuildLzipTest(OESDKTestCase):
|
||||
dirs["build"] = os.path.join(testdir, "build")
|
||||
dirs["install"] = os.path.join(testdir, "install")
|
||||
|
||||
subprocess.check_output(["tar", "xf", tarball, "-C", testdir])
|
||||
subprocess.check_output(["tar", "xf", tarball, "-C", testdir], stderr=subprocess.STDOUT)
|
||||
self.assertTrue(os.path.isdir(dirs["source"]))
|
||||
os.makedirs(dirs["build"])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user