aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSakib Sajal <sakib.sajal@windriver.com>2021-04-26 15:51:59 -0400
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-04-27 15:11:43 +0100
commit58f7cd4d6186525f08f3027975530d647cbfa26b (patch)
treec9f437eb15970409aac87d825bbad71b957901d9
parent3751ac58720a500e3b749b2296922d7c82db49a1 (diff)
downloadopenembedded-core-contrib-58f7cd4d6186525f08f3027975530d647cbfa26b.tar.gz
openembedded-core-contrib-58f7cd4d6186525f08f3027975530d647cbfa26b.tar.bz2
openembedded-core-contrib-58f7cd4d6186525f08f3027975530d647cbfa26b.zip
oe-time-dd-test.sh: collect cooker log when timeout is exceeded
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>
-rwxr-xr-xscripts/oe-time-dd-test.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/oe-time-dd-test.sh b/scripts/oe-time-dd-test.sh
index 459071e7324..46b218b76ab 100755
--- a/scripts/oe-time-dd-test.sh
+++ b/scripts/oe-time-dd-test.sh
@@ -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