From: Aníbal Limón Date: Sun, 21 Feb 2016 19:01:03 +0000 (-0600) Subject: classes/testsdk: Pass tcname to SDK and SDKExt contexts X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~26758 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a75944a63482597be88ff0f3ce55025647b78e2c;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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 Signed-off-by: Aníbal Limón Signed-off-by: Ross Burton --- diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass index 157077e18ec..f4dc2c36dc0 100644 --- a/meta/classes/testsdk.bbclass +++ b/meta/classes/testsdk.bbclass @@ -22,7 +22,7 @@ def run_test_context(CTestContext, d, testdir, tcname, pn, *args): targets = glob.glob(d.expand(testdir + "/tc/environment-setup-*")) for sdkenv in targets: 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 # we are doing that to find compile errors in the tests themselves diff --git a/meta/lib/oeqa/oetest.py b/meta/lib/oeqa/oetest.py index 3809ed722b6..fc1e8b514df 100644 --- a/meta/lib/oeqa/oetest.py +++ b/meta/lib/oeqa/oetest.py @@ -386,11 +386,12 @@ class ImageTestContext(TestContext): setattr(oeRuntimeTest, "pscmd", "ps -ef" if oeTest.hasPackage("procps") else "ps") class SDKTestContext(TestContext): - def __init__(self, d, sdktestdir, sdkenv, *args): + def __init__(self, d, sdktestdir, sdkenv, tcname, *args): super(SDKTestContext, self).__init__(d) self.sdktestdir = sdktestdir self.sdkenv = sdkenv + self.tcname = tcname if not hasattr(self, 'target_manifest'): self.target_manifest = d.getVar("SDK_TARGET_MANIFEST", True) @@ -419,7 +420,7 @@ class SDKTestContext(TestContext): "auto").split() if t != "auto"] 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.host_manifest = d.getVar("SDK_EXT_HOST_MANIFEST", True) if args: @@ -427,7 +428,7 @@ class SDKExtTestContext(SDKTestContext): else: 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( oeqa.sdkext.__file__)), "files")