[oe-commits] [bitbake] 04/08: toaster: add getMessage to MockEvent

git at git.openembedded.org git at git.openembedded.org
Thu Jun 15 23:21:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

commit d1ac359d460b1abe9815f323b3fd4cd0231cde6c
Author: David Reyna <David.Reyna at windriver.com>
AuthorDate: Wed Jun 14 21:51:29 2017 -0700

    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 at windriver.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/ui/buildinfohelper.py | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/lib/bb/ui/buildinfohelper.py b/lib/bb/ui/buildinfohelper.py
index 3f8d63d..e451c63 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list