summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorStefan Stanacar <stefanx.stanacar@intel.com>2013-08-25 01:46:55 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-08-28 23:35:57 +0100
commite1e347a2d509303e1c566450b0f2b485d3d6629f (patch)
tree1fb9d31b0ad6f1c1cae699207a568829f3b4f97f /meta/lib
parentdb38e10701cd2392a57e559573b715fd6daf6e2a (diff)
downloadopenembedded-core-e1e347a2d509303e1c566450b0f2b485d3d6629f.tar.gz
openembedded-core-e1e347a2d509303e1c566450b0f2b485d3d6629f.tar.bz2
openembedded-core-e1e347a2d509303e1c566450b0f2b485d3d6629f.zip
classes/testimage: add support for finding tests in other layers
A layer can add tests in lib/oeqa/runtime (provided it extends BBPATH as normal) and enable them with TEST_SUITES_append = " testname". Test module names shouldn't collide though. Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/runtime/__init__.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/lib/oeqa/runtime/__init__.py b/meta/lib/oeqa/runtime/__init__.py
index e69de29bb2..4cf3fa76b6 100644
--- a/meta/lib/oeqa/runtime/__init__.py
+++ b/meta/lib/oeqa/runtime/__init__.py
@@ -0,0 +1,3 @@
+# Enable other layers to have tests in the same named directory
+from pkgutil import extend_path
+__path__ = extend_path(__path__, __name__)