aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Reyna <David.Reyna@windriver.com>2017-06-14 21:51:29 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-16 00:20:43 +0100
commitd1ac359d460b1abe9815f323b3fd4cd0231cde6c (patch)
tree06afdcbdd206e9fd952c05e43b807bc7822cd56e
parent6f1a42af19220a6a8d75790893da995e84ecd7aa (diff)
downloadbitbake-d1ac359d460b1abe9815f323b3fd4cd0231cde6c.tar.gz
toaster: add getMessage to MockEvent
The MockEvent needs to not only stand in for Toaster and Bitbake quick events, it also needs to stand in for LogRecord, and for that it needs to provide the new getMessage method. [YOCTO #11440] Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--lib/bb/ui/buildinfohelper.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py
index 3f8d63d1b..e451c630d 100644
--- a/lib/bb/ui/buildinfohelper.py
+++ b/lib/bb/ui/buildinfohelper.py
@@ -858,6 +858,12 @@ class MockEvent(object):
self.pathname = None
self.lineno = None
+ def getMessage(self):
+ """
+ Simulate LogRecord message return
+ """
+ return self.msg
+
class BuildInfoHelper(object):
""" This class gathers the build information from the server and sends it