From 0d6f8b31fe6b5d3f8a02d47b9b11ab899c0b24d0 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 17 Jul 2017 09:32:00 +0200 Subject: [PATCH] ceph-ansible-prs: improve teardown Delete with force any `fetch/` directories that could have been left after a build. Signed-off-by: Guillaume Abrioux --- ceph-ansible-prs/build/teardown | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ceph-ansible-prs/build/teardown b/ceph-ansible-prs/build/teardown index 27b9bfa6..d33c32f0 100644 --- a/ceph-ansible-prs/build/teardown +++ b/ceph-ansible-prs/build/teardown @@ -4,12 +4,13 @@ cd $WORKSPACE/tests -scenarios=$(find . | grep Vagrantfile | xargs dirname) +scenarios=$(find . -name Vagrantfile | xargs dirname) for scenario in $scenarios; do - cd $scenario + pushd $scenario vagrant destroy -f - cd - + rm -rf fetch/ + popd done # Sometimes, networks may linger around, so we must ensure they are killed: -- 2.47.3