diff options
Diffstat (limited to 'csit')
-rw-r--r-- | csit/install-robotframework.sh | 11 | ||||
-rwxr-xr-x | csit/prepare-csit.sh | 13 | ||||
-rw-r--r-- | csit/pylibs.txt | 2 | ||||
-rwxr-xr-x | csit/run-csit.sh | 2 |
4 files changed, 17 insertions, 11 deletions
diff --git a/csit/install-robotframework.sh b/csit/install-robotframework.sh index dada62215f..54dbce400a 100644 --- a/csit/install-robotframework.sh +++ b/csit/install-robotframework.sh @@ -1,12 +1,13 @@ -ROBOT_VENV=$(mktemp -d --suffix=robot_venv) -echo "ROBOT_VENV=${ROBOT_VENV}" >> "${WORKSPACE}/env.properties" +set -exu + +ROBOT3_VENV=$(mktemp -d --suffix=robot_venv) +echo "ROBOT3_VENV=${ROBOT3_VENV}" >> "${WORKSPACE}/env.properties" echo "Python version is: $(python3 --version)" -python3 -m venv "${ROBOT_VENV}" -source "${ROBOT_VENV}/bin/activate" +python3 -m venv "${ROBOT3_VENV}" +source "${ROBOT3_VENV}/bin/activate" -set -exu # Make sure pip3 itself us up-to-date. python3 -m pip install --upgrade pip diff --git a/csit/prepare-csit.sh b/csit/prepare-csit.sh index b56c3855dd..67412f3cf3 100755 --- a/csit/prepare-csit.sh +++ b/csit/prepare-csit.sh @@ -20,6 +20,8 @@ # Branched from ccsdk/distribution to this repository Feb 23, 2021 # +echo "---> prepare-csit.sh" + if [ -z "$WORKSPACE" ]; then export WORKSPACE=`git rev-parse --show-toplevel` fi @@ -35,11 +37,12 @@ if [ -f ${WORKSPACE}/env.properties ]; then fi if [ -f ${ROBOT3_VENV}/bin/activate ]; then source ${ROBOT3_VENV}/bin/activate -#else -# rm -rf /tmp/ci-management -# rm -f ${WORKSPACE}/env.properties -# cd /tmp -# source ${WORKSPACE}/install-robotframework.sh +else + rm -rf /tmp/ci-management + rm -f ${WORKSPACE}/env.properties + cd /tmp + git clone "https://gerrit.onap.org/r/ci-management" + source /tmp/ci-management/jjb/integration/include-raw-integration-install-robotframework-py3.sh fi # install eteutils diff --git a/csit/pylibs.txt b/csit/pylibs.txt index d6250dbab5..4952616540 100644 --- a/csit/pylibs.txt +++ b/csit/pylibs.txt @@ -5,7 +5,7 @@ netifaces pyhocon requests robotframework-httplibrary -robotframework-requests +robotframework-requests==0.9.3 robotframework-selenium2library robotframework-extendedselenium2library robotframework-sshlibrary diff --git a/csit/run-csit.sh b/csit/run-csit.sh index 25f5f6a77a..6703160a37 100755 --- a/csit/run-csit.sh +++ b/csit/run-csit.sh @@ -26,6 +26,8 @@ WORKDIR=$(mktemp -d --suffix=-robot-workdir) # functions # +echo "---> run-csit.sh" + # wrapper for sourcing a file function source_safely() { [ -z "$1" ] && return 1 |