summaryrefslogtreecommitdiffstats
path: root/bitbake
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:36:46 +0100
commitb161cb0c354e579ee7df29a895c49dcd74a146ea (patch)
tree36d166ba259259dc6b33d6688703f9bdcabca6e3 /bitbake
parent55f8db02465f2aaadf9fb8ca63a7734b0e54435f (diff)
downloadpoky-b161cb0c354e579ee7df29a895c49dcd74a146ea.tar.gz
bitbake: 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] (Bitbake rev: e95ed33726b2a6d03382e07c6efe2ab574f84ee8) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/ui/buildinfohelper.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 3f8d63d1b6..e451c630d4 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/lib/bb/ui/buildinfohelper.py
@@ -858,6 +858,12 @@ class MockEvent(object):
858 self.pathname = None 858 self.pathname = None
859 self.lineno = None 859 self.lineno = None
860 860
861 def getMessage(self):
862 """
863 Simulate LogRecord message return
864 """
865 return self.msg
866
861 867
862class BuildInfoHelper(object): 868class BuildInfoHelper(object):
863 """ This class gathers the build information from the server and sends it 869 """ This class gathers the build information from the server and sends it