]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-prs-xenial-cluster: create the teardown script 558/head
authorAlfredo Deza <adeza@redhat.com>
Tue, 22 Nov 2016 20:02:36 +0000 (15:02 -0500)
committerAlfredo Deza <adeza@redhat.com>
Tue, 22 Nov 2016 20:03:23 +0000 (15:03 -0500)
Signed-off-by: Alfredo Deza <adeza@redhat.com>
ceph-ansible-prs-xenial-cluster/build/teardown [new file with mode: 0644]

diff --git a/ceph-ansible-prs-xenial-cluster/build/teardown b/ceph-ansible-prs-xenial-cluster/build/teardown
new file mode 100644 (file)
index 0000000..71026e6
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+# There has to be a better way to do this than this script which just looks
+# for every Vagrantfile in scenarios and then just destroys whatever is left.
+
+cd $WORKSPACE/tests
+
+scenarios=$(find . | grep Vagrantfile | xargs dirname)
+
+for scenario in $scenarios; do
+    cd $scenario
+    vagrant destroy -f
+    cd -
+done