diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 11:03:56 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-03-01 16:11:40 +0000 |
commit | a14dddc77e553d2fa90d12576503dd3fc2e52bbc (patch) | |
tree | 80a70b857ba0e34d0110eff64999751d04f40b07 | |
parent | 11365d869c03cb0e476ea43e75ce27090a33dfa7 (diff) | |
download | openembedded-core-a14dddc77e553d2fa90d12576503dd3fc2e52bbc.tar.gz openembedded-core-a14dddc77e553d2fa90d12576503dd3fc2e52bbc.tar.bz2 openembedded-core-a14dddc77e553d2fa90d12576503dd3fc2e52bbc.zip |
oeqs/sdk*/case: Use universal_newlines for subprocess calls
This removes the need for some of the ugly decode calls with hardcoded
locales.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/sdk/case.py | 2 | ||||
-rw-r--r-- | meta/lib/oeqa/sdkext/case.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oeqa/sdk/case.py b/meta/lib/oeqa/sdk/case.py index 782db8b523..963aa8d358 100644 --- a/meta/lib/oeqa/sdk/case.py +++ b/meta/lib/oeqa/sdk/case.py @@ -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) diff --git a/meta/lib/oeqa/sdkext/case.py b/meta/lib/oeqa/sdkext/case.py index 6f708aa4ca..21b718831c 100644 --- a/meta/lib/oeqa/sdkext/case.py +++ b/meta/lib/oeqa/sdkext/case.py @@ -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) |