[gnome-continuous-yocto/gnomeostree-3.28-rocko: 6423/8267] bitbake: toaster: add getMessage to MockEvent
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-continuous-yocto/gnomeostree-3.28-rocko: 6423/8267] bitbake: toaster: add getMessage to MockEvent
- Date: Sun, 17 Dec 2017 04:49:26 +0000 (UTC)
commit 282afb771d995ed85d082808cba3906a2620b41c
Author: David Reyna <David Reyna windriver com>
Date: Wed Jun 14 21:51:29 2017 -0700
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>
bitbake/lib/bb/ui/buildinfohelper.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/bitbake/lib/bb/ui/buildinfohelper.py b/bitbake/lib/bb/ui/buildinfohelper.py
index 3f8d63d..e451c63 100644
--- a/bitbake/lib/bb/ui/buildinfohelper.py
+++ b/bitbake/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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]