mirror of
https://git.yoctoproject.org/poky
synced 2026-02-12 11:43:04 +01:00
The extensible sdk context and case modules extends the sdk ones, this means that the tests from sdk are run also the sdkext tests. Enables support in context for use oe-test esdk command for run the test suites, the same options of sdk are required for run esdk tests. Removes old related to case and context inside oetest.py. [YOCTO #10599] (From OE-Core rev: 1f0bb99249744b87dd39227a4cf37f2341f5499c) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
22 lines
781 B
Python
22 lines
781 B
Python
# Copyright (C) 2016 Intel Corporation
|
|
# Released under the MIT license (see COPYING.MIT)
|
|
|
|
import os
|
|
import subprocess
|
|
|
|
from oeqa.utils import avoid_paths_in_environ
|
|
from oeqa.sdk.case import OESDKTestCase
|
|
|
|
class OESDKExtTestCase(OESDKTestCase):
|
|
def _run(self, cmd):
|
|
# extensible sdk shows a warning if found bitbake in the path
|
|
# because can cause contamination, i.e. use devtool from
|
|
# poky/scripts instead of eSDK one.
|
|
env = os.environ.copy()
|
|
paths_to_avoid = ['bitbake/bin', 'poky/scripts']
|
|
env['PATH'] = avoid_paths_in_environ(paths_to_avoid)
|
|
|
|
return subprocess.check_output(". %s > /dev/null;"\
|
|
" %s;" % (self.tc.sdk_env, cmd), stderr=subprocess.STDOUT,
|
|
shell=True, env=env).decode("utf-8")
|