From 0b17e6d32c0f3d39fb5e58c4ff1c25afe58ce4f3 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 28 Sep 2016 10:35:12 +0100 Subject: [PATCH] bitbake: runqueue: Ensure worker failure is accounted for in task statistics If the worker fails to launch, ensure the task is shown as failed rather than a confusing "all succeeded" message. Patch from Juro Bystricky [YOCTO #10335] (Bitbake rev: 0e9a2ff96d138641501874a1cd7aa6cc7e94d727) Signed-off-by: Richard Purdie --- bitbake/lib/bb/runqueue.py | 1 + 1 file changed, 1 insertion(+) diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 9b7bb3fe93..15716398f0 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py @@ -1800,6 +1800,7 @@ class RunQueueExecuteTasks(RunQueueExecute): except OSError as exc: logger.critical("Failed to spawn fakeroot worker to run %s: %s" % (task, str(exc))) self.rq.state = runQueueFailed + self.stats.taskFailed() return True self.rq.fakeworker[mc].process.stdin.write(b"" + pickle.dumps((taskfn, task, taskname, False, self.cooker.collection.get_file_appends(fn), taskdepdata)) + b"") self.rq.fakeworker[mc].process.stdin.flush()