[oe-commits] [bitbake] branch master-next updated: cooker: Reset unpon clientComplete

git at git.openembedded.org git at git.openembedded.org
Sun Mar 1 14:44:29 UTC 2020


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

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

The following commit(s) were added to refs/heads/master-next by this push:
     new 95c259d  cooker: Reset unpon clientComplete
95c259d is described below

commit 95c259dc252ce84a5cc9a01cbe132e3b38327aef
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Sun Mar 1 10:54:55 2020 +0000

    cooker: Reset unpon clientComplete
    
    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 2d937a4..2a17c67 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):

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


More information about the Openembedded-commits mailing list