mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
This tests adding a running libvirt domain to libguestfs. This was never really a safe real-world example AFAICT because it creates qemu overlays on top of disks that are opened writeable by the source guest. Nowadays qemu uses write locks to reject this type of behavior, and the test fails. Adjust things so the source VM opens its storage readonly, but we are still confirming that add_libvirt_dom doesn't mess up selinux labels. Signed-off-by: Cole Robinson <crobinso@redhat.com>
To run a single test, run a command like this in the python/ directory: ../run python -m unittest discover -v t test820RHBZ912499.py