summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/localhostbecontroller.py')
-rw-r--r--bitbake/lib/toaster/bldcontrol/localhostbecontroller.py9
1 files changed, 5 insertions, 4 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
index 1bd51437a6..95ba481974 100644
--- a/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
+++ b/bitbake/lib/toaster/bldcontrol/localhostbecontroller.py
@@ -122,10 +122,11 @@ class LocalhostBEController(BuildEnvironmentController):
122 port = "-1" 122 port = "-1"
123 logger.debug("localhostbecontroller: starting builder \n%s\n" % cmd) 123 logger.debug("localhostbecontroller: starting builder \n%s\n" % cmd)
124 cmdoutput = self._shellcmd(cmd) 124 cmdoutput = self._shellcmd(cmd)
125 for i in cmdoutput.split("\n"): 125 with open(self.be.builddir + "/toaster_server.log", "r") as f:
126 if i.startswith("Bitbake server address"): 126 for i in f.readlines():
127 port = i.split(" ")[-1] 127 if i.startswith("Bitbake server address"):
128 logger.debug("localhostbecontroller: Found bitbake server port %s" % port) 128 port = i.split(" ")[-1]
129 logger.debug("localhostbecontroller: Found bitbake server port %s" % port)
129 130
130 def _toaster_ui_started(filepath, filepos = 0): 131 def _toaster_ui_started(filepath, filepos = 0):
131 if not os.path.exists(filepath): 132 if not os.path.exists(filepath):