mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
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) (From OE-Core rev: 018549bf94d1e5d33344691fde0fb27ca50f675f) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -342,11 +342,11 @@ def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, launch_cmd=None,
|
|||||||
yield qemu
|
yield qemu
|
||||||
|
|
||||||
finally:
|
finally:
|
||||||
|
targetlogger.removeHandler(handler)
|
||||||
try:
|
try:
|
||||||
qemu.stop()
|
qemu.stop()
|
||||||
except:
|
except:
|
||||||
pass
|
pass
|
||||||
targetlogger.removeHandler(handler)
|
|
||||||
|
|
||||||
def updateEnv(env_file):
|
def updateEnv(env_file):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user