All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Randy MacLeod" <randy.macleod@windriver.com>
To: Sakib Sajal <sakib.sajal@windriver.com>,
	openembedded-core@lists.openembedded.org
Subject: Re: [OE-core] [PATCH] oe-time-dd-test.sh: collect cooker log when timeout is exceeded
Date: Thu, 22 Apr 2021 13:58:22 -0400	[thread overview]
Message-ID: <f265a2a5-032b-ed0a-ec17-21abd2ebb125@windriver.com> (raw)
In-Reply-To: <20210422173655.89313-1-sakib.sajal@windriver.com>

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

      reply	other threads:[~2021-04-22 17:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f265a2a5-032b-ed0a-ec17-21abd2ebb125@windriver.com \
    --to=randy.macleod@windriver.com \
    --cc=openembedded-core@lists.openembedded.org \
    --cc=sakib.sajal@windriver.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.