[Libguestfs] [v2v PATCH] test-v2v-o-libvirt: undefine temporary guest when exiting

Laszlo Ersek lersek at redhat.com
Wed Dec 15 14:01:27 UTC 2021


I've noticed that my libvirtd host that I use for v2v development is
littered with tmp-* guests. Re-enable the "virsh undefine" command.

Signed-off-by: Laszlo Ersek <lersek at redhat.com>
---
 tests/test-v2v-o-libvirt.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/test-v2v-o-libvirt.sh b/tests/test-v2v-o-libvirt.sh
index 7396b2ad69b2..d44f55dd6feb 100755
--- a/tests/test-v2v-o-libvirt.sh
+++ b/tests/test-v2v-o-libvirt.sh
@@ -55,8 +55,7 @@ rm -rf $d
 # Clean up.
 cleanup_fn rm -r $d
 cleanup_fn virsh pool-destroy $poolname
-# I think because the pool is transient, this is not necessary:
-#cleanup_fn virsh undefine $guestname
+cleanup_fn virsh undefine $guestname
 
 mkdir $d
 
-- 
2.19.1.3.g30247aa5d201



More information about the Libguestfs mailing list