]> code.ossystems Code Review - openembedded-core.git/commit
scripts/oe-selftest: Remove extra coverage data added to unittests
authorHumberto Ibarra <humberto.ibarra.lopez@intel.com>
Wed, 23 Dec 2015 23:36:08 +0000 (17:36 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 7 Jan 2016 13:40:04 +0000 (13:40 +0000)
commitd66a4c5cb77f745e973daf34b84724f91549f391
treebccfbab57824bc53828cb244828c5eb3b372dbef
parentc89c5383e304a52b604a3672ac93fd88b5eb8b41
scripts/oe-selftest: Remove extra coverage data added to unittests

Coverage data tracking initiates too early, causing coverage data from the
oe-selftest environment setting to be added to each run. Even when no tests are run
oe-selftest reports around 24% of coverage due to this extra data.

Change the custom resultclass used by the TextTestRunner to one generated from the
command arguments. The generated class processes coverage when needed, running
coverage setup just before the first testcase is run and reporting after the last
one finished.

[Yocto #8846]

Signed-off-by: Humberto Ibarra <humberto.ibarra.lopez@intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/oe-selftest