summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2016-12-05 11:43:21 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-01-23 12:03:56 +0000
commitf8beaf94e943a8b20d146be47a756af312ef107c (patch)
tree39add69db3a1c9856fa30fd5185531c486b8914f /meta/classes
parent07ee2fa0008a50da87fd840aea5e8bb6051c68fa (diff)
downloadopenembedded-core-f8beaf94e943a8b20d146be47a756af312ef107c.tar.gz
openembedded-core-f8beaf94e943a8b20d146be47a756af312ef107c.tar.bz2
openembedded-core-f8beaf94e943a8b20d146be47a756af312ef107c.zip
oeqa/utils/dump: Move get_host_dumper to OERuntimeTestContextExecutor class
To avoid getVar calls inside a utils module, also moves get_host_dumper import inside testexport isn't needed. [YOCTO #10231] Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/testexport.bbclass1
-rw-r--r--meta/classes/testimage.bbclass5
2 files changed, 3 insertions, 3 deletions
diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass
index 00cf24e735..5398b3c767 100644
--- a/meta/classes/testexport.bbclass
+++ b/meta/classes/testexport.bbclass
@@ -163,7 +163,6 @@ def exportTests(d,tc):
def testexport_main(d):
from oeqa.oetest import ExportTestContext
from oeqa.targetcontrol import get_target_controller
- from oeqa.utils.dump import get_host_dumper
test_create_extract_dirs(d)
export_dir = d.getVar("TEST_EXPORT_DIR")
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)