]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuTestDriverInit: Don't access live data
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 6 Mar 2017 07:27:23 +0000 (08:27 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 8 Mar 2017 09:15:16 +0000 (10:15 +0100)
commit16efa11aa6965fbe5aca0d6e2162e5542d7eefef
tree01147d8cbc073a575a43a2827238ad1dcec2cf20
parentb3388de7f26e6e62a3cf67a12481fdfbf16fc5e4
qemuTestDriverInit: Don't access live data

Some of our tests (e.g. qemuhotplugtest) call
virDomainSaveConfig(). Now the problem is, qemuTestDriverInit()
creates a fake qemu driver and fills it with some fake
configuration. At least so we hoped. The truth is, it calls
regular virQEMUDriverConfigNew() and then fix couple of paths.
Literally. Therefore our tests see regular stateDir and configDir
for the user that is running the tests. Directories, where live
domain XMLs are stored. Let's just hope our test suite hasn't
mangled any of them.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tests/testutilsqemu.c