diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-11-28 13:00:11 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-12-06 10:17:51 +0000 |
commit | 018549bf94d1e5d33344691fde0fb27ca50f675f (patch) | |
tree | ba69b5dd2b35585e1752573b12f17f4f5b2df53c | |
parent | 43b7ee731d2cfc3fd4a4c26381c8d035b5fbcdeb (diff) | |
download | openembedded-core-018549bf94d1e5d33344691fde0fb27ca50f675f.tar.gz openembedded-core-018549bf94d1e5d33344691fde0fb27ca50f675f.tar.bz2 openembedded-core-018549bf94d1e5d33344691fde0fb27ca50f675f.zip |
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.
(From OE-Core rev: 532984708436bdfa3a8cac2c684a425eb249bad0)
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 933af92dce..da705295bc 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py @@ -342,11 +342,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): """ |