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
2015-07-02 15:38:33 +01:00
committed by Richard Purdie
parent 56066872ae
commit c86a0d290f
2 changed files with 2 additions and 1 deletions

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

View File

@@ -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