From: Paul Eggleton Date: Tue, 13 Dec 2016 07:09:35 +0000 (+1300) Subject: oe-selftest: use tinfoil.parse_recipe() X-Git-Tag: uninative-1.5~1109 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=499ee9006271112f22cfe08fa5ba5c21be95380b;p=openembedded-core.git oe-selftest: use tinfoil.parse_recipe() Use tinfoil.parse_recipe() in order to allow oe-selftest to be used in memres mode. Signed-off-by: Paul Eggleton Signed-off-by: Ross Burton --- diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 56c47350b1..6acb24a2b7 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py @@ -222,9 +222,7 @@ def runqemu(pn, ssh=True): import oeqa.targetcontrol tinfoil.config_data.setVar("TEST_LOG_DIR", "${WORKDIR}/testimage") tinfoil.config_data.setVar("TEST_QEMUBOOT_TIMEOUT", "1000") - import oe.recipeutils - recipefile = oe.recipeutils.pn_to_recipe(tinfoil.cooker, pn) - recipedata = oe.recipeutils.parse_recipe(tinfoil.cooker, recipefile, []) + recipedata = tinfoil.parse_recipe(pn) # The QemuRunner log is saved out, but we need to ensure it is at the right # log level (and then ensure that since it's a child of the BitBake logger,