From: Alfredo Deza Date: Tue, 22 Nov 2016 20:02:36 +0000 (-0500) Subject: ceph-ansible-prs-xenial-cluster: create the teardown script X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=48b7144e7ee47195eb2cb168ef906431a24036f7;p=ceph-build.git ceph-ansible-prs-xenial-cluster: create the teardown script Signed-off-by: Alfredo Deza --- diff --git a/ceph-ansible-prs-xenial-cluster/build/teardown b/ceph-ansible-prs-xenial-cluster/build/teardown new file mode 100644 index 00000000..71026e6b --- /dev/null +++ b/ceph-ansible-prs-xenial-cluster/build/teardown @@ -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