summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/sdk
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 17:43:40 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 23:30:57 +0000
commit6ab4c5033af72f102e7935de62e600b7ce247f34 (patch)
treedfc83f0cff8d54ce632b34be2e0c2257760ff226 /meta/lib/oeqa/sdk
parent0a30ae5e18cd1c1576da80c3b9d31e8d64cfcc01 (diff)
downloadpoky-6ab4c5033af72f102e7935de62e600b7ce247f34.tar.gz
classes/oeqa: Replace subprocess.check_call() with check_output()
If you use subprocess.check_output() the traceback will contain the output when the command fails which is very useful for debugging. There is no good reason not to use this everywhere. (From OE-Core rev: ad750dd1cc9d789abe723daddd098ce41d8547f5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk')
-rw-r--r--meta/lib/oeqa/sdk/utils/sdkbuildproject.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py
index cc34e0c9f5..4e4e5077c0 100644
--- a/meta/lib/oeqa/sdk/utils/sdkbuildproject.py
+++ b/meta/lib/oeqa/sdk/utils/sdkbuildproject.py
@@ -24,7 +24,7 @@ class SDKBuildProject(BuildProject):
24 self._download_archive() 24 self._download_archive()
25 25
26 cmd = 'tar xf %s%s -C %s' % (self.targetdir, self.archive, self.targetdir) 26 cmd = 'tar xf %s%s -C %s' % (self.targetdir, self.archive, self.targetdir)
27 subprocess.check_call(cmd, shell=True) 27 subprocess.check_output(cmd, shell=True)
28 28
29 #Change targetdir to project folder 29 #Change targetdir to project folder
30 self.targetdir = os.path.join(self.targetdir, self.fname) 30 self.targetdir = os.path.join(self.targetdir, self.fname)