]> code.ossystems Code Review - openembedded-core.git/commit
targetcontrol: Fix leaking log handler
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 25 Apr 2020 21:20:11 +0000 (22:20 +0100)
committerSteve Sakoman <steve@sakoman.com>
Fri, 1 May 2020 20:12:13 +0000 (10:12 -1000)
commit924b020eacf111b4fd4d731b363084e254a3422d
treebb43955e57f5cd3ba70c56e3f441f363afc3d5d1
parentc9ee462bb606b34ab31cfb90f84a5302d15135cf
targetcontrol: Fix leaking log handler

We had a mystery failure on the autobuilder where runqemu appeared to
be failing as a logfile directory no longer existed. The key to
reproducing was running a runqemu where the image was deleted (as
devtool does), then running another runqemu test. E.g.:

'oe-selftest -r  devtool.DevtoolExtractTests.test_devtool_deploy_target wic.Wic2.test_qemu_efi'

This then tries to write to the logfile from the first test, the
image directory was deleted and we get strange failures.

The fix is to remove the logging handler when qemu is stopped.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/targetcontrol.py