]> code.ossystems Code Review - openembedded-core.git/commit
oeqa/core/loader: Generate function _make_failed_test dynamically
authorAníbal Limón <anibal.limon@linux.intel.com>
Thu, 29 Jun 2017 20:02:14 +0000 (15:02 -0500)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 21 Jul 2017 07:44:19 +0000 (08:44 +0100)
commitb4740d2b325a80bcecc5e56dff9add9081fcd31b
treea1e50c8ab394723f8c36a9a849fd82c94761cd61
parent68009f4eb323e07cec8c4421d546bd3125dec033
oeqa/core/loader: Generate function _make_failed_test dynamically

Python versions has different features from branches 3.4.x, 3.5.x and
3.6.x, i expected in wrong mode that was incremental for example changes
in 3.4.4 be in 3.5.x but that's not true.

The _make_failed_test internal method differs and is only available in
certain versions >= 3.4.4 and in 3.5.x and 3.6.x branches but not
realeses have been made including it.

So to avoid futher problems inspect the _make_failed_test and generates
function definition according what parameters are needed, the unique
supossition is that exception argument is always passed.

Related to,
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=d8380d098a290510b442a7abd2dd5a50cabf5844

Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
meta/lib/oeqa/core/loader.py