summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-19 14:29:32 +0000
committerSteve Sakoman <steve@sakoman.com>2023-12-21 05:17:55 -1000
commitef0c19babe32355bd61a9dc3e99d8ec414f0e42a (patch)
tree505e038cc558da8bda465b542aa550bd2fcc5469
parent6b9d89ec0b8b1eed39d2c09de1f8b5e059292225 (diff)
downloadpoky-ef0c19babe32355bd61a9dc3e99d8ec414f0e42a.tar.gz
testimage: Exclude wtmp from target-dumper commands
wtmp is filled with binary data which the run_serial command can't cope with. Catting this results in confusion of the serial interface and potentially large backlogs of data in the buffers which can hang qemu. Exclude the problematic files from the command. (From OE-Core rev: 05d9f9c6b27c0216fa4e349109ef42cf91bb4084) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 599ac08a6f6fb3f6a89a897c8e06367c63c2f979) Signed-off-by: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/classes/testimage.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index b1aef626f7..97e68d94b0 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -110,7 +110,7 @@ testimage_dump_target () {
110 netstat -an 110 netstat -an
111 ip address 111 ip address
112 # Next command will dump logs from /var/log/ 112 # Next command will dump logs from /var/log/
113 find /var/log/ -type f 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \; 113 find /var/log/ -type f -name !wtmp* 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \;
114} 114}
115 115
116testimage_dump_host () { 116testimage_dump_host () {