summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTaseer Ahmed <taseer94@gmail.com>2018-04-17 19:10:38 +0500
committerTaseer Ahmed <taseer94@gmail.com>2018-04-19 11:43:58 +0500
commit8d0f54f3b85d12bd95347f1660fabf649036418f (patch)
tree86b8352b077b487962579c002e31eba2fcd59823
parentba83783cb24bc3c40d9e43d97d7eeab4d88cb003 (diff)
xci: lib-install: Clear XCI_CACHE prior to downloading openstack-ansible-tests
If we don't clear the cache, the script errors out with the following: fatal: destination path '/root/releng-xci/.cache/repos/openstack-ansible-tests' already exists and is not an empty directory Change-Id: I22111ed655a4c6790f808155968deb2fd3828e41 Signed-off-by: Taseer Ahmed <taseer94@gmail.com>
-rw-r--r--xci/files/install-lib.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/xci/files/install-lib.sh b/xci/files/install-lib.sh
index 1a6c0b2f..14acab1b 100644
--- a/xci/files/install-lib.sh
+++ b/xci/files/install-lib.sh
@@ -148,6 +148,9 @@ ansible_lint() {
# Extract role from scenario information
local testing_role=$(sed -n "/^- scenario: ${DEPLOY_SCENARIO}/,/^$/p" ${XCI_PATH}/xci/opnfv-scenario-requirements.yml | grep role | rev | cut -d '/' -f -1 | rev)
+ # clear XCI_CACHE
+ rm -rf ${XCI_CACHE}/repos/openstack-ansible-tests
+
# Clone OSA rules too
git clone --quiet --depth 1 https://github.com/openstack/openstack-ansible-tests.git \
${XCI_CACHE}/repos/openstack-ansible-tests