All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/1] toaster: update mockevent
@ 2017-06-15  4:51 David Reyna
  2017-06-15  4:51 ` [PATCH 1/1] toaster: add getMessage to MockEvent David Reyna
  0 siblings, 1 reply; 2+ messages in thread
From: David Reyna @ 2017-06-15  4:51 UTC (permalink / raw)
  To: bitbake-devel

From: David Reyna <David.Reyna@windriver.com>

The internal MockEvent needs the new 'getMessage' method so that
it can continue to stand in for LogRecord events.

The following changes since commit 6964efddd31c479386d1643c1025bc102710392f:

  bitbake: cooker: ensure graceful exit after exception during BuildCompleted handler (2017-06-14 14:54:25 +0100)

are available in the git repository at:

  git://git.yoctoproject.org/poky-contrib dreyna/submit/dreyna/toaster/mockevent_11440
  http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=dreyna/submit/dreyna/toaster/mockevent_11440

David Reyna (1):
  toaster: add getMessage to MockEvent

 lib/bb/ui/buildinfohelper.py | 6 ++++++
 1 file changed, 6 insertions(+)

-- 
1.9.1



^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 1/1] toaster: add getMessage to MockEvent
  2017-06-15  4:51 [PATCH 0/1] toaster: update mockevent David Reyna
@ 2017-06-15  4:51 ` David Reyna
  0 siblings, 0 replies; 2+ messages in thread
From: David Reyna @ 2017-06-15  4:51 UTC (permalink / raw)
  To: bitbake-devel

From: David Reyna <David.Reyna@windriver.com>

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>
---
 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 46be5a5..12caef9 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
-- 
1.9.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-06-15  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-15  4:51 [PATCH 0/1] toaster: update mockevent David Reyna
2017-06-15  4:51 ` [PATCH 1/1] toaster: add getMessage to MockEvent David Reyna

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.