Skip to contentSkip to conversation

oe-time-dd-test.sh: collect cooker log when timeout is exceeded

PATCH Superseded Sakib Sajal 2 participants 2 messages Apr 22, 2021

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 scripts/oe-time-dd-test.sh | 1 +
 1 file changed, 1 insertion(+)
scripts/oe-time-dd-test.sh +1 -0
index 459071e732..2c74b49b3f 100755
@@ -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
Signature · 1 line
2.25.1
#1 lore raw
Quoted 13 lines · Sakib Sajal

Collect the last 30 lines from the cooker.log
whenever the timeout is exceeded.

---
  scripts/oe-time-dd-test.sh | 1 +
  1 file changed, 1 insertion(+)
scripts/oe-time-dd-test.sh +0 -0
index 459071e732..2c74b49b3f 100755

scripts/oe-time-dd-test.sh timeout ${TIMEOUT} dd if=/dev/zero of=oe-time-dd-test.dat bs=1024 count=$1 conv= · line 29

Quoted 5 lines
scripts/oe-time-dd-test.sh +1 -0
@@ -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

This would break on some distros where tmp is tmp-glibc/tmp-musl. ../Randy

Quoted 5 lines
Signature · 2 lines
# Randy MacLeod
# Wind River Linux