summaryrefslogtreecommitdiffstats
path: root/meta/classes-recipe
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/classes-recipe
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/classes-recipe')
-rw-r--r--meta/classes-recipe/testimage.bbclass16
1 files changed, 0 insertions, 16 deletions
diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass
index c6b7a1e142..f36d941891 100644
--- a/meta/classes-recipe/testimage.bbclass
+++ b/meta/classes-recipe/testimage.bbclass
@@ -109,21 +109,6 @@ TESTIMAGE_DUMP_DIR ?= "${LOG_DIR}/runtime-hostdump/"
109 109
110TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR_IMAGE IMAGE_LINK_NAME" 110TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR_IMAGE IMAGE_LINK_NAME"
111 111
112testimage_dump_target () {
113 top -bn1
114 ps
115 free
116 df
117 # The next command will export the default gateway IP
118 export DEFAULT_GATEWAY=$(ip route | awk '/default/ { print $3}')
119 ping -c3 $DEFAULT_GATEWAY
120 dmesg
121 netstat -an
122 ip address
123 # Next command will dump logs from /var/log/
124 find /var/log/ -type f -name !wtmp* 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \;
125}
126
127testimage_dump_monitor () { 112testimage_dump_monitor () {
128 query-status 113 query-status
129 query-block 114 query-block
@@ -352,7 +337,6 @@ def testimage_main(d):
352 target_kwargs['serialcontrol_cmd'] = d.getVar("TEST_SERIALCONTROL_CMD") or None 337 target_kwargs['serialcontrol_cmd'] = d.getVar("TEST_SERIALCONTROL_CMD") or None
353 target_kwargs['serialcontrol_extra_args'] = d.getVar("TEST_SERIALCONTROL_EXTRA_ARGS") or "" 338 target_kwargs['serialcontrol_extra_args'] = d.getVar("TEST_SERIALCONTROL_EXTRA_ARGS") or ""
354 target_kwargs['testimage_dump_monitor'] = d.getVar("testimage_dump_monitor") or "" 339 target_kwargs['testimage_dump_monitor'] = d.getVar("testimage_dump_monitor") or ""
355 target_kwargs['testimage_dump_target'] = d.getVar("testimage_dump_target") or ""
356 340
357 def export_ssh_agent(d): 341 def export_ssh_agent(d):
358 import os 342 import os