bitbake: toaster: Fix build execution regression

Make sure the error value is initialised and update the string match
that we have to identify bitbake's current startup status.

Patch contribution from Eduard Bartosh

(Bitbake rev: 915ba08a8a3013e9787e564f2ffd8698c948f433)

Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Michael Wood authored and Richard Purdie committed 2015-07-02 22:56:39 +01:00
1 parent 56066872ae
commit c86a0d290f
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -239,6 +239,7 @@ def main(server, eventHandler, params ):
if isinstance(event, (bb.event.BuildCompleted, bb.command.CommandFailed)):
errorcode = 0
if (isinstance(event, bb.command.CommandFailed)):
errors += 1
errorcode = 1
@@ -139,7 +139,7 @@ class LocalhostBEController(BuildEnvironmentController):
with open(filepath, "r") as f:
f.seek(filepos)
for line in f:
if line.startswith("NOTE: ToasterUI waiting for events"):
if line.startswith("Bitbake server started on demand"):
return True
return False