summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2023-12-21 07:49:26 -1000
committerSteve Sakoman <steve@sakoman.com>2023-12-29 05:29:14 -1000
commit80cc03ec403a4901e0d8ccb353a4770d13b88e0f (patch)
tree2d2238eb823eba0eb088d7c7cddcc37a6ff01225
parent1de3816043e80af993faf2a4ec3792c8e838a971 (diff)
downloadpoky-80cc03ec403a4901e0d8ccb353a4770d13b88e0f.tar.gz
testimage: drop target_dumper and host_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. It isn't possible to cherry-pick "testimage: Drop target_dumper and most of monitor_dumper" from master, so just make target_dumper and host_dumper empty functions. For further details see: https://lists.openembedded.org/g/openembedded-architecture/message/1888 (From OE-Core rev: 94e9019d2f170a26206c2774381a1d183313ecaa) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes/testimage.bbclass21
1 files changed, 0 insertions, 21 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index 97e68d94b0..7c8b2b30a1 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -99,30 +99,9 @@ TESTIMAGE_DUMP_DIR ?= "${LOG_DIR}/runtime-hostdump/"
99TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR" 99TESTIMAGE_UPDATE_VARS ?= "DL_DIR WORKDIR DEPLOY_DIR"
100 100
101testimage_dump_target () { 101testimage_dump_target () {
102 top -bn1
103 ps
104 free
105 df
106 # The next command will export the default gateway IP
107 export DEFAULT_GATEWAY=$(ip route | awk '/default/ { print $3}')
108 ping -c3 $DEFAULT_GATEWAY
109 dmesg
110 netstat -an
111 ip address
112 # Next command will dump logs from /var/log/
113 find /var/log/ -type f -name !wtmp* 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \;
114} 102}
115 103
116testimage_dump_host () { 104testimage_dump_host () {
117 top -bn1
118 iostat -x -z -N -d -p ALL 20 2
119 ps -ef
120 free
121 df
122 memstat
123 dmesg
124 ip -s link
125 netstat -an
126} 105}
127 106
128python do_testimage() { 107python do_testimage() {