From a111c0c1edd0f4341a32dd22d629e1a2442c56c4 Mon Sep 17 00:00:00 2001 From: reachableceo Date: Thu, 7 May 2026 10:48:40 -0500 Subject: [PATCH] fix: stop vm_destroy from deleting the ISO MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- run.sh | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/run.sh b/run.sh index e59e8ed..7ea3863 100755 --- a/run.sh +++ b/run.sh @@ -324,14 +324,8 @@ vm_destroy() { virsh -c "$LIBVIRT_URI" destroy "$VM_NAME" 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" - - # Also delete ISO to avoid confusion over build status - 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" + + log_info "Cleanup complete (ISO preserved)" } # Run automated boot test