From 36fe18fb5541dca62b503438bfe97f0465976bdd Mon Sep 17 00:00:00 2001 From: Yalan Zhang Date: Thu, 16 Jan 2025 02:13:20 -0500 Subject: [PATCH] Fix the issue that VM can not be cleared The VM cloned from the test can not be undefined without nvram options. Fix the issue to make the env clean. Signed-off-by: Yalan Zhang --- libvirt/tests/src/virsh_cmd/domain/virsh_managedsave.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libvirt/tests/src/virsh_cmd/domain/virsh_managedsave.py b/libvirt/tests/src/virsh_cmd/domain/virsh_managedsave.py index 37d9e41c9e..feb564fafb 100644 --- a/libvirt/tests/src/virsh_cmd/domain/virsh_managedsave.py +++ b/libvirt/tests/src/virsh_cmd/domain/virsh_managedsave.py @@ -538,5 +538,5 @@ def build_vm_xml(vm_name, **dargs): if multi_guests: for i in range(int(multi_guests)): virsh.remove_domain("%s_%s" % (vm_name, i), - "--remove-all-storage", + "--remove-all-storage --nvram", debug=True)