diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-05-28 18:10:39 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-05-30 17:20:01 +0100 |
commit | 24b631acdaa143a4de39c6e1328849660c66f219 (patch) | |
tree | 7fec14f7e9819c99d3db609be722426423d02dfa /lib/bb/event.py | |
parent | d848af637e9a14b627533bee65bf16f680dff854 (diff) | |
download | bitbake-contrib-24b631acdaa143a4de39c6e1328849660c66f219.tar.gz |
hob: handle sanity check failures as a separate event
In order to show a friendlier error message that does not bury the
actual sanity error in our typical preamble about disabling sanity
checks, use a separate event to indicate that sanity checks failed.
This change is intended to work together with the related change to
sanity.bbclass in OE-Core.
Fixes [YOCTO #2336].
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r-- | lib/bb/event.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py index f3fb5213b..1116c0a7b 100644 --- a/lib/bb/event.py +++ b/lib/bb/event.py @@ -527,3 +527,11 @@ class SanityCheckPassed(Event): """ Event to indicate sanity check is passed """ + +class SanityCheckFailed(Event): + """ + Event to indicate sanity check has failed + """ + def __init__(self, msg): + Event.__init__(self) + self._msg = msg |