summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-28 10:35:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-30 16:52:21 +0100
commit0b17e6d32c0f3d39fb5e58c4ff1c25afe58ce4f3 (patch)
treef87bc47e0ee45901fd6a0c6fe1cd534f8604c4f6 /bitbake/lib/bb
parent3b6ec40519da70544d74ce4f5fa1fdbc6965337d (diff)
downloadpoky-0b17e6d32c0f3d39fb5e58c4ff1c25afe58ce4f3.tar.gz
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 <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/runqueue.py1
1 files changed, 1 insertions, 0 deletions
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):
1800 except OSError as exc: 1800 except OSError as exc:
1801 logger.critical("Failed to spawn fakeroot worker to run %s: %s" % (task, str(exc))) 1801 logger.critical("Failed to spawn fakeroot worker to run %s: %s" % (task, str(exc)))
1802 self.rq.state = runQueueFailed 1802 self.rq.state = runQueueFailed
1803 self.stats.taskFailed()
1803 return True 1804 return True
1804 self.rq.fakeworker[mc].process.stdin.write(b"<runtask>" + pickle.dumps((taskfn, task, taskname, False, self.cooker.collection.get_file_appends(fn), taskdepdata)) + b"</runtask>") 1805 self.rq.fakeworker[mc].process.stdin.write(b"<runtask>" + pickle.dumps((taskfn, task, taskname, False, self.cooker.collection.get_file_appends(fn), taskdepdata)) + b"</runtask>")
1805 self.rq.fakeworker[mc].process.stdin.flush() 1806 self.rq.fakeworker[mc].process.stdin.flush()