Cleanup Vagrant VMs before molecule and vagrant CI (#6009)

This commit is contained in:
Maxime Guyot
2020-04-24 10:30:07 +02:00
committed by GitHub
parent cf1566e8ed
commit 6674be2572
2 changed files with 16 additions and 0 deletions

10
tests/scripts/vagrant_clean.sh Executable file
View File

@@ -0,0 +1,10 @@
#!/bin/bash
set -euxo pipefail
# Cleanup vagrant VMs to avoid name conflicts
for i in $(virsh list --name)
do
virsh destroy "$i"
virsh undefine "$i"
done