Skip to content

Commit

Permalink
Cleanup virsh volumes in Vagrant CI (#6688)
Browse files Browse the repository at this point in the history
  • Loading branch information
Miouge1 authored Sep 17, 2020
1 parent 6da385d commit 686316b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/scripts/vagrant_clean.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 686316b

Please sign in to comment.