diff --git a/tests/scripts/vagrant_clean.sh b/tests/scripts/vagrant_clean.sh index a29b52191febc045cd113848f5102db62cd4fb39..b0488183640d6e5f53396e052d0eb9a18403d8e0 100755 --- a/tests/scripts/vagrant_clean.sh +++ b/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 \ No newline at end of file