* [PATCH 0/1][PULL] scripts/bitbake: fix sanity check not functional issue
@ 2012-04-17 7:46 Dongxiao Xu
2012-04-17 7:46 ` [PATCH 1/1] scripts/bitbake: Remove sanity_info after run "bitbake -e" Dongxiao Xu
0 siblings, 1 reply; 3+ messages in thread
From: Dongxiao Xu @ 2012-04-17 7:46 UTC (permalink / raw)
To: poky
Hi Richard,
This pull request is to fix certain sanity check not functional issue (e.x, network check).
Please help to review and pull.
Thanks,
Dongxiao
The following changes since commit c936fca6e163bc19bc08cbd0036b31ca6f6c3ed6:
bitbake.conf: Add PARALLEL_MAKE to BB_HASHBASE_WHITELIST (2012-04-16 23:37:45 +0100)
are available in the git repository at:
git://git.pokylinux.org/poky-contrib dxu4/hob-bugfix-yocto
http://git.pokylinux.org/cgit.cgi/poky-contrib/log/?h=dxu4/hob-bugfix-yocto
Dongxiao Xu (1):
scripts/bitbake: Remove sanity_info after run "bitbake -e"
scripts/bitbake | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
--
1.7.4.1
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] scripts/bitbake: Remove sanity_info after run "bitbake -e"
2012-04-17 7:46 [PATCH 0/1][PULL] scripts/bitbake: fix sanity check not functional issue Dongxiao Xu
@ 2012-04-17 7:46 ` Dongxiao Xu
2012-04-17 11:19 ` Richard Purdie
0 siblings, 1 reply; 3+ messages in thread
From: Dongxiao Xu @ 2012-04-17 7:46 UTC (permalink / raw)
To: poky
With latest master, we found certain sanity check doesn't work
(e.x., the network check). This is because it created the sanity_info
file at the first time when running "bitbake -e" command in
scripts/bitbake, therefore while running the real bitbake command,
it finds that the sanity_check file does exist so it skip the network
check.
The fix is to remove the sanity_info file after running "bitbake -e"
command.
Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
---
scripts/bitbake | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/scripts/bitbake b/scripts/bitbake
index 3772d82..a6fb2e5 100755
--- a/scripts/bitbake
+++ b/scripts/bitbake
@@ -73,6 +73,7 @@ if [ $needpseudo = "1" ]; then
PSEUDOBINDIR=`cat $BUILDDIR/pseudodone`
else
PSEUDOBINDIR=`bitbake -e | grep STAGING_BINDIR_NATIVE=\" | cut -d '=' -f2 | cut -d '"' -f2`
+ rm -rf conf/sanity_info
fi
if [ -e "$PSEUDOBINDIR/pseudo" ]; then
buildpseudo="0"
--
1.7.4.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH 1/1] scripts/bitbake: Remove sanity_info after run "bitbake -e"
2012-04-17 7:46 ` [PATCH 1/1] scripts/bitbake: Remove sanity_info after run "bitbake -e" Dongxiao Xu
@ 2012-04-17 11:19 ` Richard Purdie
0 siblings, 0 replies; 3+ messages in thread
From: Richard Purdie @ 2012-04-17 11:19 UTC (permalink / raw)
To: Dongxiao Xu; +Cc: poky
On Tue, 2012-04-17 at 15:46 +0800, Dongxiao Xu wrote:
> With latest master, we found certain sanity check doesn't work
> (e.x., the network check). This is because it created the sanity_info
> file at the first time when running "bitbake -e" command in
> scripts/bitbake, therefore while running the real bitbake command,
> it finds that the sanity_check file does exist so it skip the network
> check.
>
> The fix is to remove the sanity_info file after running "bitbake -e"
> command.
>
> Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
> ---
> scripts/bitbake | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/scripts/bitbake b/scripts/bitbake
> index 3772d82..a6fb2e5 100755
> --- a/scripts/bitbake
> +++ b/scripts/bitbake
> @@ -73,6 +73,7 @@ if [ $needpseudo = "1" ]; then
> PSEUDOBINDIR=`cat $BUILDDIR/pseudodone`
> else
> PSEUDOBINDIR=`bitbake -e | grep STAGING_BINDIR_NATIVE=\" | cut -d '=' -f2 | cut -d '"' -f2`
> + rm -rf conf/sanity_info
> fi
> if [ -e "$PSEUDOBINDIR/pseudo" ]; then
> buildpseudo="0"
This forces the sanity tests to run on every bitbake run which is not
acceptable. We need to find a better solution.
This also sets off alarm bells in my mind. If the sanity tests are
failing, shouldn't they fail equally on a subsquent run of bitbake?
See my follow up patch which should fix this problem in a better way.
Cheers,
Richard
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-04-17 11:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-17 7:46 [PATCH 0/1][PULL] scripts/bitbake: fix sanity check not functional issue Dongxiao Xu
2012-04-17 7:46 ` [PATCH 1/1] scripts/bitbake: Remove sanity_info after run "bitbake -e" Dongxiao Xu
2012-04-17 11:19 ` Richard Purdie
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.