mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
classes/testsdk: Pass tcname to SDK and SDKExt contexts
tcname is needed for eSDK update testcase will be used for publish it and then try to update (From OE-Core rev: a75944a63482597be88ff0f3ce55025647b78e2c) Signed-off-by: Aníbal Limón <limon.anibal@gmail.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
2a410b225a
commit
738bd1a640
@@ -22,7 +22,7 @@ def run_test_context(CTestContext, d, testdir, tcname, pn, *args):
|
|||||||
targets = glob.glob(d.expand(testdir + "/tc/environment-setup-*"))
|
targets = glob.glob(d.expand(testdir + "/tc/environment-setup-*"))
|
||||||
for sdkenv in targets:
|
for sdkenv in targets:
|
||||||
bb.plain("Testing %s" % sdkenv)
|
bb.plain("Testing %s" % sdkenv)
|
||||||
tc = CTestContext(d, testdir, sdkenv, args)
|
tc = CTestContext(d, testdir, sdkenv, tcname, args)
|
||||||
|
|
||||||
# this is a dummy load of tests
|
# this is a dummy load of tests
|
||||||
# we are doing that to find compile errors in the tests themselves
|
# we are doing that to find compile errors in the tests themselves
|
||||||
|
|||||||
@@ -386,11 +386,12 @@ class ImageTestContext(TestContext):
|
|||||||
setattr(oeRuntimeTest, "pscmd", "ps -ef" if oeTest.hasPackage("procps") else "ps")
|
setattr(oeRuntimeTest, "pscmd", "ps -ef" if oeTest.hasPackage("procps") else "ps")
|
||||||
|
|
||||||
class SDKTestContext(TestContext):
|
class SDKTestContext(TestContext):
|
||||||
def __init__(self, d, sdktestdir, sdkenv, *args):
|
def __init__(self, d, sdktestdir, sdkenv, tcname, *args):
|
||||||
super(SDKTestContext, self).__init__(d)
|
super(SDKTestContext, self).__init__(d)
|
||||||
|
|
||||||
self.sdktestdir = sdktestdir
|
self.sdktestdir = sdktestdir
|
||||||
self.sdkenv = sdkenv
|
self.sdkenv = sdkenv
|
||||||
|
self.tcname = tcname
|
||||||
|
|
||||||
if not hasattr(self, 'target_manifest'):
|
if not hasattr(self, 'target_manifest'):
|
||||||
self.target_manifest = d.getVar("SDK_TARGET_MANIFEST", True)
|
self.target_manifest = d.getVar("SDK_TARGET_MANIFEST", True)
|
||||||
@@ -419,7 +420,7 @@ class SDKTestContext(TestContext):
|
|||||||
"auto").split() if t != "auto"]
|
"auto").split() if t != "auto"]
|
||||||
|
|
||||||
class SDKExtTestContext(SDKTestContext):
|
class SDKExtTestContext(SDKTestContext):
|
||||||
def __init__(self, d, sdktestdir, sdkenv, *args):
|
def __init__(self, d, sdktestdir, sdkenv, tcname, *args):
|
||||||
self.target_manifest = d.getVar("SDK_EXT_TARGET_MANIFEST", True)
|
self.target_manifest = d.getVar("SDK_EXT_TARGET_MANIFEST", True)
|
||||||
self.host_manifest = d.getVar("SDK_EXT_HOST_MANIFEST", True)
|
self.host_manifest = d.getVar("SDK_EXT_HOST_MANIFEST", True)
|
||||||
if args:
|
if args:
|
||||||
@@ -427,7 +428,7 @@ class SDKExtTestContext(SDKTestContext):
|
|||||||
else:
|
else:
|
||||||
self.cm = False
|
self.cm = False
|
||||||
|
|
||||||
super(SDKExtTestContext, self).__init__(d, sdktestdir, sdkenv)
|
super(SDKExtTestContext, self).__init__(d, sdktestdir, sdkenv, tcname)
|
||||||
|
|
||||||
self.sdkextfilesdir = os.path.join(os.path.dirname(os.path.abspath(
|
self.sdkextfilesdir = os.path.join(os.path.dirname(os.path.abspath(
|
||||||
oeqa.sdkext.__file__)), "files")
|
oeqa.sdkext.__file__)), "files")
|
||||||
|
|||||||
Reference in New Issue
Block a user