summaryrefslogtreecommitdiffstats
path: root/meta/classes/testimage.bbclass
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@jci.com>2019-10-16 10:18:20 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-10-19 23:18:33 +0100
commitc25a3336e283470b02a522f51df1c794043f3300 (patch)
tree7537b86f3c44e2291c7cc38600c38fa7eff8a16b /meta/classes/testimage.bbclass
parent35ddf66e49cf4a49a1c4e1eeffd6cd0e81fff6d0 (diff)
downloadpoky-c25a3336e283470b02a522f51df1c794043f3300.tar.gz
testimage.bbclass: support hardware-controlled targets
Since the introduction of the new runtime framework for target testing in commit 2aa5a4954d76 ("testimage.bbclass: Migrate class to use new runtime framework") commit 3857e5c91da6 in poky.git, target controllers have no access to the global datastore 'd' anymore. This makes it impossible for a specific OEQA (hardware) controller to access documented properties like TEST_POWERCONTROL_CMD, TEST_SERIALCONTROL_CMD, etc, meaning it's impossible for those controllers to actually control the hardware. To solve this, simply add those documented variables into the target_kwargs[]. (From OE-Core rev: 0ab7e3b573a58cc3a869ef33fd8737ca7fe04550) Signed-off-by: André Draszik <andre.draszik@jci.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r--meta/classes/testimage.bbclass6
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 525c5a6173..befda6b72c 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -262,6 +262,12 @@ def testimage_main(d):
262 # It would be better to find these modules using instrospection. 262 # It would be better to find these modules using instrospection.
263 target_kwargs['target_modules_path'] = d.getVar('BBPATH') 263 target_kwargs['target_modules_path'] = d.getVar('BBPATH')
264 264
265 # hardware controlled targets might need further access
266 target_kwargs['powercontrol_cmd'] = d.getVar("TEST_POWERCONTROL_CMD") or None
267 target_kwargs['powercontrol_extra_args'] = d.getVar("TEST_POWERCONTROL_EXTRA_ARGS") or ""
268 target_kwargs['serialcontrol_cmd'] = d.getVar("TEST_SERIALCONTROL_CMD") or None
269 target_kwargs['serialcontrol_extra_args'] = d.getVar("TEST_SERIALCONTROL_EXTRA_ARGS") or ""
270
265 # runtime use network for download projects for build 271 # runtime use network for download projects for build
266 export_proxies(d) 272 export_proxies(d)
267 273