]> code.ossystems Code Review - openembedded-core.git/commit
lib/oeqa: allow multiple layers to provide their own TEST_TARGET class
authorSipke Vriend <sipke.vriend@xilinx.com>
Thu, 30 Jan 2014 06:25:54 +0000 (16:25 +1000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 Feb 2014 22:34:34 +0000 (22:34 +0000)
commit3f25705f4a986e06cbd397aaea52b841c1a1e054
treea356a708d805ce4471e808812e3fad3424b6657d
parent4bf996557409b63c2d783f175c6325c966aae236
lib/oeqa: allow multiple layers to provide their own TEST_TARGET class

Use a python module "folder" rather than a single module within
layers to ensure multiple layers can define a TEST_TARGET class.
Current implementation using controllers.py module will only allow
a single layer to define test targets.

Add a controllers folder as well as a TestTargetLoader class whose
job is to load the given TEST_TARGET class from any number of
python modules within the oeqa/controllers/ directory of any
layer.
The only condition will be that layers will need to ensure
the TEST_TARGET class name they provide is unique otherwise there
is no guarantee which class is instantiated. a bb.warn is used
to alude to this if it happens.

Signed-off-by: Sipke Vriend <sipke.vriend@xilinx.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/controllers/__init__.py [new file with mode: 0644]
meta/lib/oeqa/controllers/testtargetloader.py [new file with mode: 0644]
meta/lib/oeqa/targetcontrol.py