]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/utils/decorators: Try and improve ugly _ErrorHandler tracebacks
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 20 Jan 2015 21:29:41 +0000 (21:29 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 11 Feb 2015 17:39:50 +0000 (17:39 +0000)
commit4019ae1dc223a5ec925e49fb9c3ad33ce170cbab
tree7874864dd0ab9f7c69edddd41b3123295a742f72
parentc32bf128beb21a45b4a5f85c890c5ed058eb1d8e
oeqa/utils/decorators: Try and improve ugly _ErrorHandler tracebacks

Currently, if one module is skipped, any other module calling skipModule
causes tracebacks about _ErrorHandler not having a _testMethodName
method.

This reworks the code in a way to avoid some of the problems by using
the id() method of the objects. It also maps to the correct name
format rather than "setupModule" or just skiping the item entirely.

(From OE-Core rev: 78d3bf2e4c88779df32b9dfbe8362dc24e9ad080)

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
meta/lib/oeqa/utils/decorators.py