From a619ea293acfdf5700030c27056312bc4b898e97 Mon Sep 17 00:00:00 2001 From: Aníbal Limón Date: Tue, 2 Feb 2016 17:08:56 -0600 Subject: oeqa/oetest: Fix compatibility SDK tests using eSDK. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When run SDK tests over eSDK we need to use SDKExtTestContext instead of SDKTestContext because if we use SDKTestContext search for SDK manifest and depends on the SDK manifest generation so populate_sdk needs to be executed. Adds a compatibility mode flag to SDKExtTestContext for search tests over sdk module instead of sdkext module and change testsdk calls to comply with this new param. (From OE-Core rev: ebe743235b383b17225553d84bf8e6f80d364dcd) Signed-off-by: Aníbal Limón Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- meta/classes/testsdk.bbclass | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'meta/classes') diff --git a/meta/classes/testsdk.bbclass b/meta/classes/testsdk.bbclass index 417510ce3d..453ce4056d 100644 --- a/meta/classes/testsdk.bbclass +++ b/meta/classes/testsdk.bbclass @@ -5,14 +5,14 @@ TEST_LOG_DIR ?= "${WORKDIR}/testimage" TESTSDKLOCK = "${TMPDIR}/testsdk.lock" -def run_test_context(CTestContext, d, testdir, tcname, pn): +def run_test_context(CTestContext, d, testdir, tcname, pn, *args): import glob import time targets = glob.glob(d.expand(testdir + "/tc/environment-setup-*")) for sdkenv in targets: bb.plain("Testing %s" % sdkenv) - tc = CTestContext(d, testdir, sdkenv) + tc = CTestContext(d, testdir, sdkenv, args) # this is a dummy load of tests # we are doing that to find compile errors in the tests themselves @@ -112,7 +112,7 @@ def testsdkext_main(d): try: bb.plain("Running SDK Compatibility tests ...") - run_test_context(SDKTestContext, d, testdir, tcname, pn) + run_test_context(SDKExtTestContext, d, testdir, tcname, pn, True) finally: pass -- cgit v1.2.3-54-g00ecf