]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/core/loader: Make _built_modules_dict() support packages correctly
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Fri, 29 Sep 2017 16:06:11 +0000 (18:06 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Dec 2017 17:14:25 +0000 (17:14 +0000)
commit8d5eb5498975fd0d73ac20e2c4d938c1f85317d7
treebf7f12df8692f6509e59a2f3175e208be51f0dd3
parent35ecbe834290f346a8acf1e926e3104a8ac6edb0
oeqa/core/loader: Make _built_modules_dict() support packages correctly

For test modules in a package, e.g., oelib.license, running
`oe-selftest -r oelib.license` or `oe-selftest -r
oelib.license.TestSimpleCombinations` would fail with a message that
the specified test cases could not be found. This was due to the
parsing in _built_modules_dict(), which failed to distinguish between
<package>.<module>.<class> and <module>.<class>.<testcase> and treated
both cases as the latter.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
meta/lib/oeqa/core/loader.py