On 2021-04-22 1:36 p.m., Sakib Sajal wrote:
Collect the last 30 lines from the cooker.log
whenever the timeout is exceeded.

Signed-off-by: Sakib Sajal <[email protected]>
---
  scripts/oe-time-dd-test.sh | 1 +
  1 file changed, 1 insertion(+)

diff --git a/scripts/oe-time-dd-test.sh b/scripts/oe-time-dd-test.sh
index 459071e732..2c74b49b3f 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

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







--
# Randy MacLeod
# Wind River Linux
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#150797): 
https://lists.openembedded.org/g/openembedded-core/message/150797
Mute This Topic: https://lists.openembedded.org/mt/82291480/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to