]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
devtool: fix handling of errors during task execution paule/server-fixes
authorPaul Eggleton <paul.eggleton@linux.intel.com>
Wed, 2 Aug 2017 14:33:04 +0000 (16:33 +0200)
committerPaul Eggleton <paul.eggleton@linux.intel.com>
Mon, 7 Aug 2017 10:01:10 +0000 (12:01 +0200)
commitc402f25ed2151e87e201ffcb1b8a9b0fc1550a1c
tree4aff083acc9003eed537c13f666f17fbc6495cad
parent9476ad81324bf304b26d2e9bbe469bd7e3751192
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>
scripts/lib/devtool/standard.py