mirror of
https://git.yoctoproject.org/poky
synced 2026-05-02 18:32:15 +02:00
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. (From OE-Core rev: cf138029a1f18f991fc7a28c81d85884942e9d56) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.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
5ff7db946c
commit
cf0b92f893
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user