From 8c1e43ca58fe6616fa4b98bf1076f31d4bfd095d Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 26 Mar 2014 15:07:59 +0000 Subject: bitbake: cooker/event: Overhaul sanity test mechanism Sanity tests are currently a pain as its hard to control when they run. This results in issues where for example the bitbake -e output is not useful as the sanity tests prevent it from executing. The sanity tests should run later than the base configuration. This patch changes the sanity tests to always be event triggered with the option of returning either events on the status, or raising errors. A new cooker feature is used to change the behaviour depending on the controlling UI. This does need a change to sanity.bbclass in the OE metadata but its worth the pain for the increased flexibility and control this offers UIs and the improvement to the user experience. (Bitbake rev: 32e171bcc92c6e27fefee971e8714ddf8e1a8ac1) Signed-off-by: Richard Purdie --- bitbake/lib/bb/ui/knotty.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/lib/bb/ui') diff --git a/bitbake/lib/bb/ui/knotty.py b/bitbake/lib/bb/ui/knotty.py index 55cf50735c..009653c038 100644 --- a/bitbake/lib/bb/ui/knotty.py +++ b/bitbake/lib/bb/ui/knotty.py @@ -34,6 +34,8 @@ import copy import atexit from bb.ui import uihelper +featureSet = [bb.cooker.CookerFeatures.SEND_SANITYEVENTS] + logger = logging.getLogger("BitBake") interactive = sys.stdout.isatty() -- cgit v1.2.3-54-g00ecf