From: Richard Purdie Date: Wed, 28 Sep 2016 09:35:12 +0000 (+0100) Subject: runqueue: Ensure worker failure is accounted for in task statistics X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0e9a2ff96d138641501874a1cd7aa6cc7e94d727;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git 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] Signed-off-by: Richard Purdie --- diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 9b7bb3fe932..15716398f0b 100644 --- a/lib/bb/runqueue.py +++ b/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()