summaryrefslogtreecommitdiffstats
path: root/csit/run-csit.sh
diff options
context:
space:
mode:
authorHerbert Eiselt <herbert.eiselt@highstreet-technologies.com>2021-07-20 13:53:16 +0000
committerGerrit Code Review <gerrit@onap.org>2021-07-20 13:53:16 +0000
commit0bb4a58d0710eb065e9df2ba1c739990d8932a38 (patch)
treeac25d3e6c9294fc01688efc209af113c98955b11 /csit/run-csit.sh
parent3f0cf04efd86ee181e2358488390b408a2e1b4d3 (diff)
parentcb75097bcd353161aa91fdbf420ec92d01e31ec1 (diff)
Merge "[SNDC-CSIT] Provide test deployment for SDNC/R"
Former-commit-id: c3ff30e996b138db0cf25789ca734fc189c395b5
Diffstat (limited to 'csit/run-csit.sh')
-rwxr-xr-xcsit/run-csit.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/csit/run-csit.sh b/csit/run-csit.sh
index eb255e93..e1b831af 100755
--- a/csit/run-csit.sh
+++ b/csit/run-csit.sh
@@ -154,12 +154,14 @@ TESTPLANDIR="${WORKSPACE}/${TESTPLAN}"
# Set env variables
source_safely "${WORKSPACE}/sdnc-csit.env"
+if [[ -z $ROBOT_IMAGE ]]; then
+ # Run installation of prerequired libraries
+ source_safely "${WORKSPACE}/prepare-csit.sh"
-# Run installation of prerequired libraries
-source_safely "${WORKSPACE}/prepare-csit.sh"
# Activate the virtualenv containing all the required libraries installed by prepare-csit.sh
source_safely "${ROBOT_VENV}/bin/activate"
+fi
WORKDIR=$(mktemp -d --suffix=-robot-workdir)
cd "${WORKDIR}"