All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] cooker: Ensure BB_CONSOLE remains correct over server resets
@ 2015-10-11  9:22 Richard Purdie
  2015-10-16 15:57 ` Smith, Elliot
  0 siblings, 1 reply; 10+ messages in thread
From: Richard Purdie @ 2015-10-11  9:22 UTC (permalink / raw)
  To: bitbake-devel, Smith, Elliot

The console log data is written to is created at console initialisation
time and does not change over reset events. This ensures the
BB_CONSOLELOG value is correct over such resets by preserving it.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
 bitbake/lib/bb/cooker.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 9c9d761..ba0a8fe 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -244,6 +244,11 @@ class BBCooker:
         self.state = state.initial
         self.caches_array = []
 
+        # Need to preserve BB_CONSOLELOG over resets
+        consolelog = None
+        if hasattr(self, "data"):
+            consolelog = self.data.getVar("BB_CONSOLELOG", True)
+
         if CookerFeatures.BASEDATASTORE_TRACKING in self.featureset:
             self.enableDataTracking()
 
@@ -270,6 +275,8 @@ class BBCooker:
         self.data = self.databuilder.data
         self.data_hash = self.databuilder.data_hash
 
+        if consolelog:
+            self.data.setVar("BB_CONSOLELOG", consolelog)
 
         # we log all events to a file if so directed
         if self.configuration.writeeventlog:




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

end of thread, other threads:[~2015-10-27 12:32 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-11  9:22 [PATCH] cooker: Ensure BB_CONSOLE remains correct over server resets Richard Purdie
2015-10-16 15:57 ` Smith, Elliot
2015-10-16 15:59   ` Richard Purdie
2015-10-19 10:32     ` Barros Pena, Belen
2015-10-19 11:39       ` Richard Purdie
2015-10-19 12:27     ` Smith, Elliot
2015-10-24 11:26       ` Richard Purdie
2015-10-26 11:12         ` Barros Pena, Belen
2015-10-27 11:21         ` Smith, Elliot
2015-10-27 12:32           ` Smith, Elliot

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.