From 48b7144e7ee47195eb2cb168ef906431a24036f7 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Tue, 22 Nov 2016 15:02:36 -0500 Subject: [PATCH] ceph-ansible-prs-xenial-cluster: create the teardown script Signed-off-by: Alfredo Deza --- ceph-ansible-prs-xenial-cluster/build/teardown | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 ceph-ansible-prs-xenial-cluster/build/teardown 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 -- 2.39.5