summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2016-12-13 20:09:35 +1300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-12-14 12:30:49 +0000
commit1f8cf63f8affcf6c881c7842ef38b82b8781d2eb (patch)
tree6d280a5718a7099f2f5b042dd0752c24ddcfa98b
parent93d675304d9c6d0e5ec68a886daa572e4b6c1474 (diff)
downloadpoky-1f8cf63f8affcf6c881c7842ef38b82b8781d2eb.tar.gz
oe-selftest: use tinfoil.parse_recipe()
Use tinfoil.parse_recipe() in order to allow oe-selftest to be used in memres mode. (From OE-Core rev: 499ee9006271112f22cfe08fa5ba5c21be95380b) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/utils/commands.py4
1 files changed, 1 insertions, 3 deletions
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):
222 import oeqa.targetcontrol 222 import oeqa.targetcontrol
223 tinfoil.config_data.setVar("TEST_LOG_DIR", "${WORKDIR}/testimage") 223 tinfoil.config_data.setVar("TEST_LOG_DIR", "${WORKDIR}/testimage")
224 tinfoil.config_data.setVar("TEST_QEMUBOOT_TIMEOUT", "1000") 224 tinfoil.config_data.setVar("TEST_QEMUBOOT_TIMEOUT", "1000")
225 import oe.recipeutils 225 recipedata = tinfoil.parse_recipe(pn)
226 recipefile = oe.recipeutils.pn_to_recipe(tinfoil.cooker, pn)
227 recipedata = oe.recipeutils.parse_recipe(tinfoil.cooker, recipefile, [])
228 226
229 # The QemuRunner log is saved out, but we need to ensure it is at the right 227 # The QemuRunner log is saved out, but we need to ensure it is at the right
230 # log level (and then ensure that since it's a child of the BitBake logger, 228 # log level (and then ensure that since it's a child of the BitBake logger,