Run prepare-csit.sh every time 29/94329/3
authorkaihlavi <l.kaihlavirt@partner.samsung.com>
Tue, 27 Aug 2019 08:30:51 +0000 (11:30 +0300)
committerkaihlavi <l.kaihlavirt@partner.samsung.com>
Tue, 27 Aug 2019 10:19:42 +0000 (13:19 +0300)
 Preparation steps need to be executed every time for Jenkins as
 they do not have all the required libraries preinstalled

 This is a quick fix for a problem introduced in
 https://gerrit.onap.org/r/#/c/integration/csit/+/93698/

 A more proper correction requires refactoring and aligning
 prerequirements for local executions and Jenkins and needs
 analysis and design to be done in future releases

Issue-ID: TEST-197
Signed-off-by: kaihlavi <l.kaihlavirt@partner.samsung.com>
Change-Id: If15935097d2b90b9d49062429194ca7d7a0e4d3d

run-csit.sh

index 043292c..e7457ad 100755 (executable)
@@ -67,13 +67,8 @@ export TESTOPTIONS="${2}"
 
 TESTPLANDIR=${WORKSPACE}/${TESTPLAN}
 
-# Assume that if env.properties is set, installation prerequirements are fulfilled
-# env.properties needs to be sourced for ROBOT_VENV
-if [ -f ${WORKSPACE}/env.properties ]; then
-    source ${WORKSPACE}/env.properties
-else
-    source ${WORKSPACE}/prepare-csit.sh
-fi
+# Run installation of prerequired libraries
+source ${WORKSPACE}/prepare-csit.sh
 
 # Activate the virtualenv containing all the required libraries installed by prepare-csit.sh
 source "${ROBOT_VENV}/bin/activate"