diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-02-29 14:23:33 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-04-14 14:44:30 +0100 |
commit | 98a2c37e077b16e3bc8bb102bd18b293130d15a4 (patch) | |
tree | adbd780f4f1f26802a1b240b95e32b8d87e36255 | |
parent | 96fc889b8e62ba4463c71158c4b7286c48d68cd8 (diff) | |
download | openembedded-core-contrib-98a2c37e077b16e3bc8bb102bd18b293130d15a4.tar.gz |
cooker: pass exception to finishAsyncCommand
An invalid task causes bitbake to exit incorrectly, firing a
CommandCompleted event rather than a CommandFailed one. This
means that clients listening for CommandFailed events are
unable to detect the build failure even though one occurred.
Passing an exception string to finishAsyncCommand when a task
fails causes the CommandFailed event to be fired correctly.
[YOCTO #9087]
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/cooker.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py index 3747e0890b..4068b8f9b3 100644 --- a/lib/bb/cooker.py +++ b/lib/bb/cooker.py @@ -1349,7 +1349,7 @@ class BBCooker: failures += len(exc.args) retval = False except SystemExit as exc: - self.command.finishAsyncCommand() + self.command.finishAsyncCommand(str(exc)) return False if not retval: @@ -1385,7 +1385,7 @@ class BBCooker: failures += len(exc.args) retval = False except SystemExit as exc: - self.command.finishAsyncCommand() + self.command.finishAsyncCommand(str(exc)) return False if not retval: |