diff options
author | Christopher Larson <chris_larson@mentor.com> | 2016-09-16 13:05:11 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-21 22:17:52 +0100 |
commit | 63966ada459d44d3dc7817ad2a026a22e8f6700f (patch) | |
tree | 682e0d22910e5e665c3c293862c5e480b94d4d89 | |
parent | ba566b46d530b495f12f3a74f76434717b22a020 (diff) | |
download | bitbake-63966ada459d44d3dc7817ad2a026a22e8f6700f.tar.gz |
bb.build: in _exec_task, catch BBHandledException
We don't want a traceback for this exception, we need to catch it, fire
TaskFailed, and return failure.
Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/build.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/bb/build.py b/lib/bb/build.py index fcf014917..2ed0441b4 100644 --- a/lib/bb/build.py +++ b/lib/bb/build.py @@ -575,6 +575,9 @@ def _exec_task(fn, task, d, quieterr): logger.error(str(exc)) event.fire(TaskFailed(task, logfn, localdata, errprinted), localdata) return 1 + except bb.BBHandledException: + event.fire(TaskFailed(task, logfn, localdata, True), localdata) + return 1 finally: sys.stdout.flush() sys.stderr.flush() |