]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commitdiff
testimage: Exclude wtmp from target-dumper commands
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 19 Dec 2023 14:29:32 +0000 (14:29 +0000)
committerSteve Sakoman <steve@sakoman.com>
Thu, 21 Dec 2023 14:08:46 +0000 (04:08 -1000)
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.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 599ac08a6f6fb3f6a89a897c8e06367c63c2f979)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/testimage.bbclass

index b1aef626f79756ae016cc18d710030231a69f485..97e68d94b00e5b50c580a6e9db3344bf9c7ea625 100644 (file)
@@ -110,7 +110,7 @@ testimage_dump_target () {
     netstat -an
     ip address
     # Next command will dump logs from /var/log/
-    find /var/log/ -type f 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \;
+    find /var/log/ -type f -name !wtmp* 2>/dev/null -exec echo "====================" \; -exec echo {} \; -exec echo "====================" \; -exec cat {} \; -exec echo "" \;
 }
 
 testimage_dump_host () {