Ensure robot framework is installed for CSITs 73/130773/3
authorliamfallon <liam.fallon@est.tech>
Wed, 7 Sep 2022 08:16:11 +0000 (09:16 +0100)
committerliamfallon <liam.fallon@est.tech>
Wed, 7 Sep 2022 08:48:46 +0000 (09:48 +0100)
The script to install the robot framework for CSITs was not called due
to an incorrect path in its invocation. This commit ensures it is
called.

This bug has been in the CSIT scripts for a numebr of releases. It only
seems to have become an issue in the last few hours.

Issue-ID: POLICY-4338
Change-Id: I0c2c578b784732a4f2beed514512f8e8c558f726
Signed-off-by: liamfallon <liam.fallon@est.tech>
csit/include-raw-integration-install-robotframework.sh
csit/prepare-csit.sh

index 1fb107b..2711d18 100755 (executable)
@@ -19,7 +19,7 @@
 # ============LICENSE_END=====================================================
 #
 
-ROBOT_VENV=$(mktemp -d --suffix=robot_venv)
+ROBOT_VENV=$(mktemp -d)
 echo "ROBOT_VENV=${ROBOT_VENV}" >> "${WORKSPACE}/env.properties"
 
 echo "Python version is: $(python3 --version)"
@@ -33,5 +33,5 @@ set -exu
 python3 -m pip install --upgrade pip
 
 echo "Installing Python Requirements"
-python3 -m pip install -r pylibs.txt
+python3 -m pip install -r ${SCRIPTS}/pylibs.txt
 python3 -m pip freeze
index 4a6f3db..b51e0a1 100755 (executable)
@@ -32,7 +32,7 @@ fi
 if [ -f "${ROBOT_VENV}"/bin/activate ]; then
     source "${ROBOT_VENV}"/bin/activate
 else
-    source ./include-raw-integration-install-robotframework.sh
+    source ${SCRIPTS}/include-raw-integration-install-robotframework.sh
 fi