summaryrefslogtreecommitdiff
path: root/meta/classes/testimage.bbclass
diff options
context:
space:
mode:
authorMariano Lopez <mariano.lopez@linux.intel.com>2017-02-21 10:11:00 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-02-23 12:29:10 -0800
commitcf138029a1f18f991fc7a28c81d85884942e9d56 (patch)
treef5d01090bfd7645563820fdb580361c42a40b8a2 /meta/classes/testimage.bbclass
parent9d25188e873645b849584b51a77b86588a51d4ba (diff)
downloadopenembedded-core-cf138029a1f18f991fc7a28c81d85884942e9d56.tar.gz
openembedded-core-cf138029a1f18f991fc7a28c81d85884942e9d56.tar.bz2
openembedded-core-cf138029a1f18f991fc7a28c81d85884942e9d56.zip
oeqa/runtime/context.py: Fix use of getTarget() with testexport
The idea on getTarget is to use kwargs to send custom variables to different targets, instead of this, a new variable was added (just used for custom targets) and this broke testexport. So in order to fix it, just add the custom variable to kwargs. This fixes the use of getTarget() in testexport class that was introduced in 1dc8010afd71fe46fb28bb86fb7c07a5fbd3d7cf. Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r--meta/classes/testimage.bbclass6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 09cc6d2a21..82557a8ede 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -229,6 +229,10 @@ def testimage_main(d):
'kvm' : kvm,
}
+ # TODO: Currently BBPATH is needed for custom loading of targets.
+ # It would be better to find these modules using instrospection.
+ target_kwargs['target_modules_path'] = d.getVar('BBPATH')
+
# runtime use network for download projects for build
export_proxies(d)
@@ -239,7 +243,7 @@ def testimage_main(d):
# the robot dance
target = OERuntimeTestContextExecutor.getTarget(
- d.getVar("TEST_TARGET"), d.getVar("BBPATH"), None, d.getVar("TEST_TARGET_IP"),
+ d.getVar("TEST_TARGET"), None, d.getVar("TEST_TARGET_IP"),
d.getVar("TEST_SERVER_IP"), **target_kwargs)
# test context