]> code.ossystems Code Review - openembedded-core.git/commit
oeqa: Refactor test skipping decorators to use the unittest result object
authorLucian Musat <georgex.l.musat@intel.com>
Thu, 24 Jul 2014 12:41:24 +0000 (15:41 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 25 Jul 2014 14:33:34 +0000 (15:33 +0100)
commit4d2d201158236bd4c72546cf8db88681ff921b11
tree50535f967724fcb1380c4180cb23cac6e1d0a2df
parente1ac22b340a66e3da53182faf0d624db9ccbdee1
oeqa: Refactor test skipping decorators to use the unittest result object

In order to make the test skipping decorators independent of the oeTest object we rely on the unittest result object to construct skip, fail and error lists used by these decorators.
Created a new object getResults that analyses upper frames and retrieves the unittest result object instance, then return a list of failed, skipped and error tests.
Also removed the oetest import from decorators.py because it was no longer required.

Signed-off-by: Lucian Musat <georgex.l.musat@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oeqa/oetest.py
meta/lib/oeqa/utils/decorators.py