summaryrefslogtreecommitdiffstats
path: root/lib/bb/event.py
diff options
context:
space:
mode:
authorJason Wessel <jason.wessel@windriver.com>2012-09-17 17:43:49 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-09-24 15:31:13 +0100
commitcffe80d82a46aaf52ff4a7b6409435754043553f (patch)
tree580b4ae3f86180391efbadcfda1c31e4a31a73ec /lib/bb/event.py
parenta6cc53cdb3c34fc8fd01bbc5ce0008429dc6785c (diff)
downloadbitbake-contrib-cffe80d82a46aaf52ff4a7b6409435754043553f.tar.gz
event.py, knotty.py, ncurses.py, runningbuild.py: Add support for LogExecTTY event
The LogExecTTY even is intended to provide the ability to spawn a task on a the controlling tty, if a tty is availble. When a controlling tty is not availble the previous behavior is preserved where a warning is issued about the action an end user must execute. All the available UI's were tested against the new event type. This feature is primarily intended for hooking up a screen client session automatically on the controlling tty to allow for a more streamlined end user experience when using a pure command line driven environment. The changes that send the LogExecTTY event are in the oe-core side. Signed-off-by: Jason Wessel <jason.wessel@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/event.py')
-rw-r--r--lib/bb/event.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/lib/bb/event.py b/lib/bb/event.py
index 7ee28fcfc..deb1c2159 100644
--- a/lib/bb/event.py
+++ b/lib/bb/event.py
@@ -510,6 +510,15 @@ class MsgFatal(MsgBase):
class MsgPlain(MsgBase):
"""General output"""
+class LogExecTTY(Event):
+ """Send event containing program to spawn on tty of the logger"""
+ def __init__(self, msg, prog, sleep_delay, retries):
+ Event.__init__(self)
+ self.msg = msg
+ self.prog = prog
+ self.sleep_delay = sleep_delay
+ self.retries = retries
+
class LogHandler(logging.Handler):
"""Dispatch logging messages as bitbake events"""