Skip to content

Commit 6f29e8c

Browse files
committed
ci: properly delete and cleanup the VMs on both hypervisors
previously, only HV2 was properly cleaned up. as a result, the CHV tests did not actually bootstrap a new OS instance but instead use the one from the QEMU test.
1 parent c516575 commit 6f29e8c

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.github/actions/test/integration/test/qemu/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -144,8 +144,8 @@ runs:
144144
local IP="$1"
145145
ssh $SSH_OPTS "$USER@$IP" << EOF
146146
virsh destroy VM-QEMU || true
147-
virsh undefine VM-QEMU --nvram --tpm --remove-all-storage
148-
rm -f /var/lib/libvirt/images/ubuntu.qcow2
147+
virsh undefine VM-QEMU --nvram --tpm --remove-all-storage || true
148+
rm -f /var/lib/libvirt/images/ubuntu.*
149149
rm -f /opt/vm-qemu.xml
150150
EOF
151151
}

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: test hypervisor capabilities
22
on:
3-
push:
4-
branches:
5-
- feat/ci-test-cloud-hypervisor
63
workflow_run:
74
workflows:
85
- nightly

0 commit comments

Comments
 (0)