* [PATCH] oe-time-dd-test.sh: collect cooker log when timeout is exceeded
@ 2021-04-22 17:36 Sakib Sajal
2021-04-22 17:58 ` [OE-core] " Randy MacLeod
0 siblings, 1 reply; 2+ messages in thread
From: Sakib Sajal @ 2021-04-22 17:36 UTC (permalink / raw)
To: openembedded-core
Collect the last 30 lines from the cooker.log
whenever the timeout is exceeded.
Signed-off-by: Sakib Sajal <sakib.sajal@windriver.com>
---
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
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [OE-core] [PATCH] oe-time-dd-test.sh: collect cooker log when timeout is exceeded
2021-04-22 17:36 [PATCH] oe-time-dd-test.sh: collect cooker log when timeout is exceeded Sakib Sajal
@ 2021-04-22 17:58 ` Randy MacLeod
0 siblings, 0 replies; 2+ messages in thread
From: Randy MacLeod @ 2021-04-22 17:58 UTC (permalink / raw)
To: Sakib Sajal, openembedded-core
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 <sakib.sajal@windriver.com>
> ---
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-04-22 17:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-22 17:36 [PATCH] oe-time-dd-test.sh: collect cooker log when timeout is exceeded Sakib Sajal
2021-04-22 17:58 ` [OE-core] " Randy MacLeod
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.