From 686316b390e54d51eff1d63ec553c4967f7a966d Mon Sep 17 00:00:00 2001 From: Maxime Guyot Date: Thu, 17 Sep 2020 17:04:45 +0200 Subject: [PATCH] Cleanup virsh volumes in Vagrant CI (#6688) --- tests/scripts/vagrant_clean.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/scripts/vagrant_clean.sh b/tests/scripts/vagrant_clean.sh index a29b52191..b04881836 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