1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-08 05:09:24 +00:00

oeqs/sdk*/case: Use universal_newlines for subprocess calls

This removes the need for some of the ugly decode calls with hardcoded
locales.

(From OE-Core rev: a14dddc77e553d2fa90d12576503dd3fc2e52bbc)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2017-03-01 11:03:56 +00:00
parent 78195a23b0
commit 23137a9897
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -9,4 +9,4 @@ class OESDKTestCase(OETestCase):
def _run(self, cmd):
return subprocess.check_output(". %s > /dev/null; %s;" % \
(self.tc.sdk_env, cmd), shell=True,
stderr=subprocess.STDOUT).decode("utf-8")
stderr=subprocess.STDOUT, universal_newlines=True)
+1 -1
View File
@@ -18,4 +18,4 @@ class OESDKExtTestCase(OESDKTestCase):
return subprocess.check_output(". %s > /dev/null;"\
" %s;" % (self.tc.sdk_env, cmd), stderr=subprocess.STDOUT,
shell=True, env=env).decode("utf-8")
shell=True, env=env, universal_newlines=True)