]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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:16 +0000 (13:40 +0000)
commit17d886bef2ba960233a353114bf3681619d5cec9
tree8ad9f8e8c136843ae07b0877a29fa8e9bd1ad16d
parent4ec2da71db78c16aedad2156a68b2e244ee2ccea
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]

(From OE-Core rev: 175810503d5596370cf7d840539ebdf35cf30278)

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