From f6b0c8071428695f2e8ffdd9e9a487593a596fa3 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 a29b52191fe..b0488183640 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