[bitbake-devel] [PATCH] cooker: Reset unpon clientComplete
Richard Purdie
richard.purdie at linuxfoundation.org
Sun Mar 1 10:58:46 UTC 2020
If for example a tinfoil connection edits the datastore, a subsequent
connection can be "corrupted" by those changes. By calling the cooker
reset function at exit, the behaviour becomes the same as a newly
setup server.
This avoids problems in tests when BB_SERVER_TIMEOUT is set as the
server is properly reset between connections.
[YOCTO #13812]
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/cooker.py | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 2d937a413c..2a17c67373 100644
--- a/lib/bb/cooker.py
+++ b/lib/bb/cooker.py
@@ -1665,6 +1665,7 @@ class BBCooker:
self.command.reset()
self.databuilder.reset()
self.data = self.databuilder.data
+ self.reset()
class CookerExit(bb.event.Event):
--
2.25.0
More information about the bitbake-devel
mailing list