From: Denys Dmytriyenko <denys@ti.com>
To: Jacob Stiffler <j-stiffler@ti.com>
Cc: meta-arago@arago-project.org
Subject: Re: [tisdk-build-scripts][PATCH 3/4] bitbake-test-sdk-image: Add support to control verbosity of build logging.
Date: Thu, 4 Sep 2014 13:38:42 -0400 [thread overview]
Message-ID: <20140904173842.GL18620@edge> (raw)
In-Reply-To: <1409851868-7389-3-git-send-email-j-stiffler@ti.com>
Can you please elaborate on this change? You don't seem to be increasing
Bitbake's verbosity level, just enabling capturing stdout and stderr into a
file, which gets captured by results.html anyway. What's the purpose?
On Thu, Sep 04, 2014 at 01:31:07PM -0400, Jacob Stiffler wrote:
> * Setting BUILD_LOG_VERBOSE="true" (case sensitive) will enable logging stdout
> and stderr for the bitbake command to the build log.
>
> Signed-off-by: Jacob Stiffler <j-stiffler@ti.com>
> ---
> lib/oesdk/bitbake-test-sdk-image | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)
>
> diff --git a/lib/oesdk/bitbake-test-sdk-image b/lib/oesdk/bitbake-test-sdk-image
> index cff86e4..7d8d093 100644
> --- a/lib/oesdk/bitbake-test-sdk-image
> +++ b/lib/oesdk/bitbake-test-sdk-image
> @@ -375,12 +375,16 @@ bitbake_sdk_images(){
> for c in "${bitbake_command_list[@]}"
> do
> log $machine_build_log echo "executing bitbake command $c for machine $m"
> - MACHINE=$m EXTRA_TISDK_FILES="${INSTALLER_EXTRAS_ROOT}/${MACHINE}" TISDK_VERSION="${TISDK_VERSION}" bitbake $c
> + if [ "${BUILD_LOG_VERBOSE}" = "true" ]; then
> + MACHINE=$m EXTRA_TISDK_FILES="${INSTALLER_EXTRAS_ROOT}/${MACHINE}" TISDK_VERSION="${TISDK_VERSION}" bitbake $c 2>&1 | eval tee -a $machine_build_log
> + else
> + MACHINE=$m EXTRA_TISDK_FILES="${INSTALLER_EXTRAS_ROOT}/${MACHINE}" TISDK_VERSION="${TISDK_VERSION}" bitbake $c
> + fi
>
> # Check the return status of the build process. If the build returned
> # a non-zero exit value then log the failure and continue (without
> # testing). A lack of a test file will indicate a test skip
> - if [ "$?" != "0" ]
> + if [ "${PIPESTATUS[0]}" != "0" ]
> then
> echo "FAILED" > $LOG_DIR/$m-build-result.txt
> build_status="fail"
> --
> 1.7.9.5
>
> _______________________________________________
> meta-arago mailing list
> meta-arago@arago-project.org
> http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
next prev parent reply other threads:[~2014-09-04 17:38 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-04 17:31 [tisdk-build-scripts][PATCH 1/4] config-build-env: Add support for adding a source mirror Jacob Stiffler
2014-09-04 17:31 ` [tisdk-build-scripts][PATCH 2/4] package-sdks: Add configuration parameter to specify the installer prefix Jacob Stiffler
2014-09-04 17:36 ` Denys Dmytriyenko
2014-09-04 17:56 ` Stiffler, Jacob
2014-09-04 19:00 ` Denys Dmytriyenko
2014-09-04 17:40 ` Cooper Jr., Franklin
2014-09-04 17:31 ` [tisdk-build-scripts][PATCH 3/4] bitbake-test-sdk-image: Add support to control verbosity of build logging Jacob Stiffler
2014-09-04 17:38 ` Denys Dmytriyenko [this message]
2014-09-04 18:05 ` Stiffler, Jacob
2014-09-04 19:03 ` Denys Dmytriyenko
2014-09-04 19:08 ` Cooper Jr., Franklin
2014-09-04 19:19 ` Stiffler, Jacob
2014-09-04 19:23 ` Denys Dmytriyenko
2014-09-04 17:31 ` [tisdk-build-scripts][PATCH 4/4] configs: Add new configuration parameters Jacob Stiffler
2014-09-04 17:36 ` [tisdk-build-scripts][PATCH 1/4] config-build-env: Add support for adding a source mirror Denys Dmytriyenko
2014-09-04 17:39 ` Cooper Jr., Franklin
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=20140904173842.GL18620@edge \
--to=denys@ti.com \
--cc=j-stiffler@ti.com \
--cc=meta-arago@arago-project.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 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.