Skip to contentSkip to conversation

testimage: Implement custom target loading

PATCH New Juro Bystricky 1 participant 1 message Feb 6, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 testimage: Implement custom target loading

This patch implements custom target loading for testimage, currently missing due to major changes to the test framework. Custom targets can be defined in various meta-layers, so we need an extra path information in order to find them.
Any other additional info is retrieved as usual via the variables TEST_TARGET and TEST_SUITES

---
 meta/classes/testimage.bbclass   |  2 +-
 meta/lib/oeqa/runtime/context.py | 74 ++++++++++++++++++++++++++++++++++++++--
 2 files changed, 72 insertions(+), 4 deletions(-)
meta/classes/testimage.bbclass +1 -1
index c6e4cec..366c6f5 100644
@@ -238,7 +238,7 @@ def testimage_main(d):
 
     # the robot dance
     target = OERuntimeTestContextExecutor.getTarget(
-        d.getVar("TEST_TARGET"), None, d.getVar("TEST_TARGET_IP"),
+        d.getVar("TEST_TARGET"), d.getVar("BBPATH"), None, d.getVar("TEST_TARGET_IP"),
         d.getVar("TEST_SERVER_IP"), **target_kwargs)
 
     # test context
meta/lib/oeqa/runtime/context.py +71 -3

89 lines not on this page · raw message

Signature · 1 line
2.7.4