From 599ac08a6f6fb3f6a89a897c8e06367c63c2f979 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 19 Dec 2023 14:29:32 +0000 Subject: [PATCH] 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. Signed-off-by: Richard Purdie --- meta/classes-recipe/testimage.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes-recipe/testimage.bbclass b/meta/classes-recipe/testimage.bbclass index 7c56fe9674c..c6b7a1e142f 100644 --- a/meta/classes-recipe/testimage.bbclass +++ b/meta/classes-recipe/testimage.bbclass @@ -121,7 +121,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_monitor () { -- 2.47.3