summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/testimage.bbclass1
-rw-r--r--meta/lib/oeqa/core/target/qemu.py4
2 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 6c8bedcd65..e3feef02f8 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -319,6 +319,7 @@ def testimage_main(d):
319 target_kwargs['powercontrol_extra_args'] = d.getVar("TEST_POWERCONTROL_EXTRA_ARGS") or "" 319 target_kwargs['powercontrol_extra_args'] = d.getVar("TEST_POWERCONTROL_EXTRA_ARGS") or ""
320 target_kwargs['serialcontrol_cmd'] = d.getVar("TEST_SERIALCONTROL_CMD") or None 320 target_kwargs['serialcontrol_cmd'] = d.getVar("TEST_SERIALCONTROL_CMD") or None
321 target_kwargs['serialcontrol_extra_args'] = d.getVar("TEST_SERIALCONTROL_EXTRA_ARGS") or "" 321 target_kwargs['serialcontrol_extra_args'] = d.getVar("TEST_SERIALCONTROL_EXTRA_ARGS") or ""
322 target_kwargs['testimage_dump_target'] = d.getVar("testimage_dump_target") or ""
322 323
323 def export_ssh_agent(d): 324 def export_ssh_agent(d):
324 import os 325 import os
diff --git a/meta/lib/oeqa/core/target/qemu.py b/meta/lib/oeqa/core/target/qemu.py
index 295e8765e9..0f29414df5 100644
--- a/meta/lib/oeqa/core/target/qemu.py
+++ b/meta/lib/oeqa/core/target/qemu.py
@@ -12,6 +12,7 @@ from collections import defaultdict
12 12
13from .ssh import OESSHTarget 13from .ssh import OESSHTarget
14from oeqa.utils.qemurunner import QemuRunner 14from oeqa.utils.qemurunner import QemuRunner
15from oeqa.utils.dump import TargetDumper
15 16
16supported_fstypes = ['ext3', 'ext4', 'cpio.gz', 'wic'] 17supported_fstypes = ['ext3', 'ext4', 'cpio.gz', 'wic']
17 18
@@ -42,6 +43,9 @@ class OEQemuTarget(OESSHTarget):
42 dump_host_cmds=dump_host_cmds, logger=logger, 43 dump_host_cmds=dump_host_cmds, logger=logger,
43 serial_ports=serial_ports, boot_patterns = boot_patterns, 44 serial_ports=serial_ports, boot_patterns = boot_patterns,
44 use_ovmf=ovmf) 45 use_ovmf=ovmf)
46 dump_target_cmds = kwargs.get("testimage_dump_target")
47 self.target_dumper = TargetDumper(dump_target_cmds, dump_dir, self.runner)
48 self.target_dumper.create_dir("qemu")
45 49
46 def start(self, params=None, extra_bootparams=None, runqemuparams=''): 50 def start(self, params=None, extra_bootparams=None, runqemuparams=''):
47 if self.use_slirp and not self.server_ip: 51 if self.use_slirp and not self.server_ip: