oe-time-dd-test.sh: collect cooker log when timeout is exceeded
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.
Signed-off-by Sakib Sajal <[email protected]>
--- scripts/oe-time-dd-test.sh | 1 + 1 file changed, 1 insertion(+)
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
Signature · 1 line
2.25.1
Quoted 13 lines · Sakib Sajal
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(+)scripts/oe-time-dd-test.sh +0
-0
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