mirror of
git://git.yoctoproject.org/poky.git
synced 2025-07-19 21:09:03 +02:00

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>
13 lines
393 B
Python
13 lines
393 B
Python
# Copyright (C) 2016 Intel Corporation
|
|
# Released under the MIT license (see COPYING.MIT)
|
|
|
|
import subprocess
|
|
|
|
from oeqa.core.case import OETestCase
|
|
|
|
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, universal_newlines=True)
|