diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-28 10:35:12 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-28 10:35:12 +0100 |
commit | 0e9a2ff96d138641501874a1cd7aa6cc7e94d727 (patch) | |
tree | a941d94baed1136aee014bddebc4a9a1e1316b91 | |
parent | 4bcf77589312d9936340d8c308006c2fc9baf67c (diff) | |
download | bitbake-0e9a2ff96d138641501874a1cd7aa6cc7e94d727.tar.gz |
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 <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/runqueue.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/bb/runqueue.py b/lib/bb/runqueue.py index 9b7bb3fe9..15716398f 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"<runtask>" + pickle.dumps((taskfn, task, taskname, False, self.cooker.collection.get_file_appends(fn), taskdepdata)) + b"</runtask>") self.rq.fakeworker[mc].process.stdin.flush() |