]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-time-dd-test.sh: collect cooker log when timeout is exceeded
authorSakib Sajal <sakib.sajal@windriver.com>
Mon, 26 Apr 2021 19:51:59 +0000 (15:51 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 27 Apr 2021 14:11:43 +0000 (15:11 +0100)
Collect the last 30 lines from the cooker.log
whenever the timeout is exceeded.

Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/oe-time-dd-test.sh

index 459071e7324d88a38aa8fb94e0d923f305a63462..46b218b76abec21a5c2ae7c7a7880626d147394d 100755 (executable)
@@ -25,4 +25,5 @@ timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=$1 conv=
 if [ $? -ne 0 ]; then
        echo "Timeout used: ${TIMEOUT}"
        top -c -b -n1 -w 512
+       tail -30 tmp*/log/cooker/*/console-latest.log
 fi