Skip to contentSkip to conversation

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

PATCH New Sakib Sajal 1 participant 1 message Apr 26, 2021

lore
Share & tools
lore
#0 lore raw

PATCH v2 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..46b218b76a 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