summaryrefslogtreecommitdiffstats
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-07-27 22:32:43 +0100
commite95ed33726b2a6d03382e07c6efe2ab574f84ee8 (patch)
tree33eb9d035352f1df02c4efc0f25d98723305b373
parente1c769eed2258bb2697e9558f484dd62a3da7399 (diff)
downloadbitbake-e95ed33726b2a6d03382e07c6efe2ab574f84ee8.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