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:23:31 +0100 |
| commit | 5a975239eabe1f1e5f03d3fb10fd7d31929f35aa (patch) | |
| tree | 0e0935b436fe70db87ed2fd0ec250b15d696e6a3 /bitbake/lib/bb/event.py | |
| parent | c8d78b21863d4fee0a0f330f835f4561dc2d5021 (diff) | |
| download | poky-5a975239eabe1f1e5f03d3fb10fd7d31929f35aa.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].
(Bitbake rev: 24b631acdaa143a4de39c6e1328849660c66f219)
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/event.py')
| -rw-r--r-- | bitbake/lib/bb/event.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/event.py b/bitbake/lib/bb/event.py index f3fb5213ba..1116c0a7bf 100644 --- a/bitbake/lib/bb/event.py +++ b/bitbake/lib/bb/event.py | |||
| @@ -527,3 +527,11 @@ class SanityCheckPassed(Event): | |||
| 527 | """ | 527 | """ |
| 528 | Event to indicate sanity check is passed | 528 | Event to indicate sanity check is passed |
| 529 | """ | 529 | """ |
| 530 | |||
| 531 | class SanityCheckFailed(Event): | ||
| 532 | """ | ||
| 533 | Event to indicate sanity check has failed | ||
| 534 | """ | ||
| 535 | def __init__(self, msg): | ||
| 536 | Event.__init__(self) | ||
| 537 | self._msg = msg | ||
