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)