fix: stop vm_destroy from deleting the ISO

The destroy function was deleting the ISO file (a 7-minute build
artifact) as "cleanup". This is destructive and wasteful - the ISO
is the artifact we're testing. Only VM-specific files should be
cleaned up.

💘 Generated with Crush

Assisted-by: GLM-5.1 via Crush <crush@charm.land>
This commit is contained in:
2026-05-07 10:48:40 -05:00
parent 46dabde629
commit a111c0c1ed

8
run.sh
View File

@@ -325,13 +325,7 @@ vm_destroy() {
virsh -c "$LIBVIRT_URI" undefine "$VM_NAME" --nvram 2>/dev/null || true virsh -c "$LIBVIRT_URI" undefine "$VM_NAME" --nvram 2>/dev/null || true
rm -f "$VM_DISK_PATH" "$VM_ISO_PATH" "/tmp/${VM_NAME}.xml" "/tmp/${VM_NAME}_VARS.fd" rm -f "$VM_DISK_PATH" "$VM_ISO_PATH" "/tmp/${VM_NAME}.xml" "/tmp/${VM_NAME}_VARS.fd"
# Also delete ISO to avoid confusion over build status log_info "Cleanup complete (ISO preserved)"
if [[ -f "$ISO_PATH" ]]; then
log_info "Removing ISO: $ISO_PATH"
rm -f "$ISO_PATH" "${ISO_PATH}.md5" "${ISO_PATH}.sha256"
fi
log_info "Cleanup complete"
} }
# Run automated boot test # Run automated boot test