From f5908991756ecaceccdfa0cb8a47947a8d470e84 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Wed, 6 Feb 2019 10:57:53 +0100 Subject: [PATCH] ceph-ansible: clean fact cache in individual scenario testing cleanup fact cache here too Signed-off-by: Guillaume Abrioux --- ceph-ansible-scenario/build/build | 3 +++ ceph-ansible-scenario/build/teardown | 3 +++ 2 files changed, 6 insertions(+) diff --git a/ceph-ansible-scenario/build/build b/ceph-ansible-scenario/build/build index 678004d4..711d1705 100644 --- a/ceph-ansible-scenario/build/build +++ b/ceph-ansible-scenario/build/build @@ -14,6 +14,9 @@ clear_libvirt_networks restart_libvirt_services update_vagrant_boxes +# In the same logic, clean fact cache +rm -rf $HOME/ansible/facts/* + # the $SCENARIO var is injected by the job configuration. It maps # to an actual, defined, tox environment $VENV/tox -rv -e=$SCENARIO --workdir=$WORKDIR -- --provider=libvirt diff --git a/ceph-ansible-scenario/build/teardown b/ceph-ansible-scenario/build/teardown index 350248e5..b9e5ebfa 100644 --- a/ceph-ansible-scenario/build/teardown +++ b/ceph-ansible-scenario/build/teardown @@ -4,3 +4,6 @@ cd $WORKSPACE/tests # the method exists in scripts/build_utils.sh teardown_vagrant_tests + +# clean fact cache +rm -rf $HOME/ansible/facts/* \ No newline at end of file -- 2.39.5