]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-build.git/commitdiff
ceph-ansible-prs: improve teardown 788/head
authorGuillaume Abrioux <gabrioux@redhat.com>
Mon, 17 Jul 2017 07:32:00 +0000 (09:32 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Tue, 12 Sep 2017 02:01:20 +0000 (04:01 +0200)
Delete with force any `fetch/` directories that could have been left after a
build.

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
ceph-ansible-prs/build/teardown

index 27b9bfa6e25118c33468dacb5922584f4b56aa39..d33c32f0ba6bbdf725a7910f93cc2874dcc4fbeb 100644 (file)
@@ -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: