[oe-commits] [openembedded-core] 06/46: oeqa/utils/commands: Avoid log message duplication

git at git.openembedded.org git at git.openembedded.org
Fri Nov 30 17:35:11 UTC 2018


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

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

commit 3123c1cc3143012f6440a19879ea32e6e0b548b2
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Wed Nov 28 13:00:11 2018 +0000

    oeqa/utils/commands: Avoid log message duplication
    
    Each time a runqemu() fails, the log handler would be left behind meaning
    messages from any subsequent run would be duplicated (or worse/more).
    
    This ensures we remove the handler regardless and means we no longer
    have the duplication.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/lib/oeqa/utils/commands.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index e6a35d3..2e6a228 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -345,11 +345,11 @@ def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, launch_cmd=None,
         yield qemu
 
     finally:
+        targetlogger.removeHandler(handler)
         try:
             qemu.stop()
         except:
             pass
-    targetlogger.removeHandler(handler)
 
 def updateEnv(env_file):
     """

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


More information about the Openembedded-commits mailing list