diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-28 13:00:11 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-28 16:22:08 +0000 |
commit | 98de50fcf2f5660043a8f8079516404b190860c7 (patch) | |
tree | 90452d5f0f95a3847c6dcb306bef032ce698dec2 | |
parent | af5e83ead16d311aab69c0748657ec540eeb2d97 (diff) | |
download | openembedded-core-contrib-98de50fcf2f5660043a8f8079516404b190860c7.tar.gz |
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@linuxfoundation.org>
-rw-r--r-- | meta/lib/oeqa/utils/commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index e6a35d3d25..2e6a2289cd 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): """ |