]> code.ossystems Code Review - openembedded-core.git/commit
devtool: fix handling of errors during task execution
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 7 Aug 2017 10:03:44 +0000 (12:03 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 8 Aug 2017 15:22:18 +0000 (16:22 +0100)
commit65e644368fc9c294af96906528ee0cf30305e0a6
tree8ebb51cff8998a176bc5530d068d882b2eaf0361
parenta686fcabacd49fdb814e646305c1f33fee1d5abf
devtool: fix handling of errors during task execution

* If an error is logged while executing a task, we need to ensure we
  exit instead of assuming everything went OK.
* If we receive CookerExit, the server is shutting down and we need to
  stop waiting for events and probably exit (knotty does this). This
  will occur if an exception or bb.fatal() happens during an event
  handler.

This fixes a couple of issues highlighted when using devtool upgrade or
modify on a non-supported recipe with intel-iot-refkit together with
bitbake master, but I'd be very surprised if it were hard to reproduce
in other scenarios.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/devtool/standard.py