mirror of
https://git.yoctoproject.org/poky
synced 2026-02-27 03:49:41 +01:00
The commands only work with with bash. If /bin/sh is dash like in Debian, the command execution fails with errors like: Standard Output: /bin/sh: 5: export: --sysroot: bad variable name and all SDK tests fail. (From OE-Core rev: 274c22a1fd95418e4afb6633bb4b2e6debc4d7ea) Signed-off-by: Mikko Rapeli <mikko.rapeli@bmw.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 lines
417 B
Python
13 lines
417 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, executable="/bin/bash",
|
|
stderr=subprocess.STDOUT, universal_newlines=True)
|