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-06-22 09:23:38 +0100
commit282afb771d995ed85d082808cba3906a2620b41c (patch)
treee802f5e87bd3b2cb84fbc5e627e8ccc2b49d7354 /bitbake
parent1d7a768dbbbc71a4ac83b08c83a0066c1e8b1522 (diff)
downloadpoky-282afb771d995ed85d082808cba3906a2620b41c.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: d1ac359d460b1abe9815f323b3fd4cd0231cde6c) 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