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:34:00 +0000 (15:34 +0100)
commit696e023f1a866689fb143b8767e8ce1873a18e21
tree2a4bf3ac5add97c3122299ffba13b4019cac66a7
parentfe54e03a5cb2a1e033bce017d0a5f031e1095678
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.

(From OE-Core rev: 4d2d201158236bd4c72546cf8db88681ff921b11)

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