Browse Source

Cleanup virsh volumes in Vagrant CI (#6688)

pull/6759/head
Maxime Guyot 4 years ago
committed by GitHub
parent
commit
686316b390
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions
  1. 7
      tests/scripts/vagrant_clean.sh

7
tests/scripts/vagrant_clean.sh

@ -9,4 +9,11 @@ for i in $(virsh list --name)
do
virsh destroy "$i"
virsh undefine "$i"
done
# Cleanup domain volumes
for i in $(virsh vol-list default|grep \.img |grep -v VAGRANTSLASH | cut -f 2 -d ' ')
do
virsh vol-delete "$i" --pool default
done
Loading…
Cancel
Save