[oe-commits] [bitbake] 14/45: toaster: stop bitbake server after the build
git at git.openembedded.org
git at git.openembedded.org
Wed Apr 6 22:11:32 UTC 2016
rpurdie pushed a commit to branch master
in repository bitbake.
commit 062c68e3e7d00834118fe07ceb0899874be714ae
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Wed Apr 6 17:46:24 2016 +0100
toaster: stop bitbake server after the build
Bitbake server is used only during the build. There is no need
in keeping server running after the build.
Running bitbake -m in the subshell after the build should stop
the server.
Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
Signed-off-by: Michael Wood <michael.g.wood at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/toaster/bldcontrol/localhostbecontroller.py | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/lib/toaster/bldcontrol/localhostbecontroller.py b/lib/toaster/bldcontrol/localhostbecontroller.py
index ed46636..6d7f433 100644
--- a/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -317,11 +317,13 @@ class LocalhostBEController(BuildEnvironmentController):
task = ':%s' % task
bbtargets += '%s%s ' % (target.target, task)
- # run build with local bitbake
+ # run build with local bitbake. stop the server after the build.
log = os.path.join(builddir, 'toaster_ui.log')
- self._shellcmd('TOASTER_BRBE="%s" BBSERVER="0.0.0.0:-1" '
- '../bitbake/bin/bitbake %s -u toasterui '
- '>>%s 2>&1 &' % (brbe, bbtargets, log), builddir)
+ self._shellcmd(['(TOASTER_BRBE="%s" BBSERVER="0.0.0.0:-1" '
+ '../bitbake/bin/bitbake %s -u toasterui >>%s 2>&1;'
+ 'BITBAKE_UI="" BBSERVER=0.0.0.0:-1 %s -m)&' \
+ % (brbe, bbtargets, log, bitbake)], builddir,
+ nowait=True)
logger.debug('localhostbecontroller: Build launched, exiting. '
'Follow build logs at %s' % log)
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list