]> code.ossystems Code Review - openembedded-core.git/commit
oe-selftest: Improved --list-classes when determining test names
authorDaniel Istrate <daniel.alexandrux.istrate@intel.com>
Mon, 4 Jan 2016 13:43:56 +0000 (15:43 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jan 2016 13:40:04 +0000 (13:40 +0000)
commit175810503d5596370cf7d840539ebdf35cf30278
tree299ba089f344751c265f7ef6a50b162e60d64120
parent975e67e28ccba5dcb0fced43c1f9e7da183dc201
oe-selftest: Improved --list-classes when determining test names

--list-classes does a weak validation when determining test names:
(if method.startswith("test_") which could report any class attribute
that starts with 'test_' as a valid test case.

This fix checks that the class attribute that starts with 'test_'
is also callable (is a method).

Fix for [YOCTO #8862]

Signed-off-by: Daniel Istrate <daniel.alexandrux.istrate@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/oe-selftest