From 2d34b085333ff1d23fc00cacd68aaeed3d630571 Mon Sep 17 00:00:00 2001 From: Aníbal Limón Date: Mon, 5 Dec 2016 11:43:21 -0600 Subject: oeqa/utils/dump: Move get_host_dumper to OERuntimeTestContextExecutor class MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To avoid getVar calls inside a utils module, also moves get_host_dumper import inside testexport isn't needed. [YOCTO #10231] (From OE-Core rev: f8beaf94e943a8b20d146be47a756af312ef107c) Signed-off-by: Aníbal Limón Signed-off-by: Richard Purdie --- meta/classes/testimage.bbclass | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'meta/classes/testimage.bbclass') diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 6fed408613..62ecaef502 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -128,8 +128,8 @@ def testimage_main(d): import signal from oeqa.oetest import ImageTestContext from oeqa.targetcontrol import get_target_controller - from oeqa.utils.dump import get_host_dumper from bb.utils import export_proxies + from oeqa.utils.dump import HostDumper pn = d.getVar("PN") bb.utils.mkdirhier(d.getVar("TEST_LOG_DIR")) @@ -139,7 +139,8 @@ def testimage_main(d): export_proxies(d) # we need the host dumper in test context - host_dumper = get_host_dumper(d) + host_dumper = HostDumper(d.getVar("testimage_dump_host", True), + d.getVar("TESTIMAGE_DUMP_DIR", True)) # the robot dance target = get_target_controller(d) -- cgit v1.2.3-54-g00ecf