summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/targetcontrol.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-19 16:04:24 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-20 07:47:00 +0000
commit08369812c1a9a33338a3998968b802822b97c40a (patch)
tree68e134d24531106f5d835bc85efb12c4af41e84d /meta/lib/oeqa/targetcontrol.py
parent2ad6a0be02aca682cbfb68e84dc60fcbaa95b0ce (diff)
downloadpoky-08369812c1a9a33338a3998968b802822b97c40a.tar.gz
testimage: Drop target_dumper and most of monitor_dumper
The target_dumper code is basically broken. It has been reading binary files over the text base serial communication and runs at every command failure which makes no sense. Each run might overwrite files from the previous run and the output appears corrupted due to confusion from the binary data. For now, remove the commands and the target dumper code as the command and execution point are problematic. Also remove the same pieces of the monitor code but leave the command list since in theory this can be moved to a more useful place in the code. (From OE-Core rev: a24d787987dccc95fdd95b7e85bf525a1c55b285) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/targetcontrol.py')
-rw-r--r--meta/lib/oeqa/targetcontrol.py2
1 files changed, 0 insertions, 2 deletions
diff --git a/meta/lib/oeqa/targetcontrol.py b/meta/lib/oeqa/targetcontrol.py
index e21655c979..6e8b781973 100644
--- a/meta/lib/oeqa/targetcontrol.py
+++ b/meta/lib/oeqa/targetcontrol.py
@@ -103,7 +103,6 @@ class QemuTarget(BaseTarget):
103 self.rootfs = os.path.join(d.getVar("DEPLOY_DIR_IMAGE"), d.getVar("IMAGE_LINK_NAME") + '.' + self.image_fstype) 103 self.rootfs = os.path.join(d.getVar("DEPLOY_DIR_IMAGE"), d.getVar("IMAGE_LINK_NAME") + '.' + self.image_fstype)
104 self.kernel = os.path.join(d.getVar("DEPLOY_DIR_IMAGE"), d.getVar("KERNEL_IMAGETYPE", False) + '-' + d.getVar('MACHINE', False) + '.bin') 104 self.kernel = os.path.join(d.getVar("DEPLOY_DIR_IMAGE"), d.getVar("KERNEL_IMAGETYPE", False) + '-' + d.getVar('MACHINE', False) + '.bin')
105 self.qemulog = os.path.join(self.testdir, "qemu_boot_log.%s" % self.datetime) 105 self.qemulog = os.path.join(self.testdir, "qemu_boot_log.%s" % self.datetime)
106 dump_target_cmds = d.getVar("testimage_dump_target")
107 dump_monitor_cmds = d.getVar("testimage_dump_monitor") 106 dump_monitor_cmds = d.getVar("testimage_dump_monitor")
108 dump_dir = d.getVar("TESTIMAGE_DUMP_DIR") 107 dump_dir = d.getVar("TESTIMAGE_DUMP_DIR")
109 if not dump_dir: 108 if not dump_dir:
@@ -144,7 +143,6 @@ class QemuTarget(BaseTarget):
144 tmpfsdir = d.getVar("RUNQEMU_TMPFS_DIR"), 143 tmpfsdir = d.getVar("RUNQEMU_TMPFS_DIR"),
145 serial_ports = len(d.getVar("SERIAL_CONSOLES").split())) 144 serial_ports = len(d.getVar("SERIAL_CONSOLES").split()))
146 145
147 self.target_dumper = TargetDumper(dump_target_cmds, dump_dir, self.runner)
148 self.monitor_dumper = MonitorDumper(dump_monitor_cmds, dump_dir, self.runner) 146 self.monitor_dumper = MonitorDumper(dump_monitor_cmds, dump_dir, self.runner)
149 if (self.monitor_dumper): 147 if (self.monitor_dumper):
150 self.monitor_dumper.create_dir("qmp") 148 self.monitor_dumper.create_dir("qmp")