From: Darren Hart <dvhart@linux.intel.com>
To: Patches and discussions about the oe-core layer
<openembedded-core@lists.openembedded.org>
Subject: Re: [PATCH] bb-matrix.sh: check for the existence of time
Date: Tue, 26 Jul 2011 15:41:34 -0700 [thread overview]
Message-ID: <4E2F429E.5030607@linux.intel.com> (raw)
In-Reply-To: <4E2F384F.6060907@ll.mit.edu>
Hi Jeff,
Thanks for the patch. A couple points of feedback below:
On 07/26/2011 02:57 PM, Jeff Mitchell wrote:
> What an existential subject. The patch is quite self-explanatory.
Well, there is almost always a need for commit log beyond just the
subject. The only exception might be "whitespace fixes only" or
"spelling fixes only".
Something like:
"If time is missing, bb-matrix will fail to run and report misleading
errors about tmp/buildstats not existing. Check and abort with an
appropriate error message."
Also, while it is tempting to squeeze in typo fixes and such with a
functional patch, unless they are in the code you are changing anyway,
they should be sent as separate patches. If it were necessary to revert
the functional patch, we'd rather not have to also lose the typo or
whitespace cleanup, for example.
> -# This script runs BB_CMD (typically building core-image-sato) for all
> +# This script runs BB_CMD (typically building core-image-minimal) for all
> # combincations of BB_RANGE and PM_RANGE values. It saves off all the console
^ heh, another typo! bad dvhart.
> # logs, the buildstats directories, and creates a bb-pm-runtime.dat file which
> # can be used to postprocess the results with a plotting tool, spreadsheet, etc.
> @@ -32,6 +32,11 @@
> # Darren Hart <dvhart@linux.intel.com>
> #
>
> +if [ ! -f /usr/bin/time ]; then
This should probably be a bit more generic:
TIME_CMD=$(which time)
if [ -z "$TIME_CMD" ]; then
echo 'The "time" binary was not found in your path, \
please install it.'
exit 1
fi
Then replace /usr/bin/time below with TIME_CMD.
--
Darren Hart
Intel Open Source Technology Center
Yocto Project - Linux Kernel
next prev parent reply other threads:[~2011-07-26 22:57 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-26 21:57 [PATCH] bb-matrix.sh: check for the existence of time Jeff Mitchell
2011-07-26 22:41 ` Jeff Mitchell
2011-07-26 22:41 ` Darren Hart [this message]
2011-07-26 22:50 ` Jeff Mitchell
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=4E2F429E.5030607@linux.intel.com \
--to=dvhart@linux.intel.com \
--cc=openembedded-core@lists.openembedded.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox