mirror of
https://git.yoctoproject.org/poky
synced 2026-02-10 10:43:02 +01:00
Adds case and context modules for SDK based on oetest.py old code. Enables SDK Test component usage with oe-test, the SDK Test component adds command line options for specify sdk installed dir, sdk environment and target/hosts maniftest. [YOCTO #10599] (From OE-Core rev: 19e875dd81c42841666e6db5f6b665b4e1cddfe6) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
13 lines
384 B
Python
13 lines
384 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).decode("utf-8")
|