]> 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>
Wed, 8 Nov 2017 19:54:22 +0000 (19:54 +0000)
commit80db3d999ae26d298d9d5418a32b11a4f27af9d5
tree53c64058eff4e2295393d41728cf832a201ca8dd
parent842f3beb211eb0a398b37c50d433a93b86964f6b
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>
meta/lib/oeqa/core/loader.py