Fix: Update lf-activate-venv
[releng/builder.git] / jjb / integration / integration-install-robotframework.sh
index c0ed0738f6b6b251d1c967728ccba67db872720a..5f909177a065fa3cd094e8fedcb9b3e2a5fa7ebf 100644 (file)
@@ -1,4 +1,4 @@
-#!/bin/bash -l
+#!/bin/sh -l
 # SPDX-License-Identifier: EPL-1.0
 ##############################################################################
 # Copyright (c) 2015 The Linux Foundation and others.
@@ -18,7 +18,7 @@ echo ROBOT_VENV="${ROBOT_VENV}" >> "${WORKSPACE}/env.properties"
 # to install into the image.
 python3 -m venv "${ROBOT_VENV}"
 # shellcheck disable=SC1090
-source "${ROBOT_VENV}/bin/activate"
+. "${ROBOT_VENV}/bin/activate"
 
 set -exu
 
@@ -62,5 +62,9 @@ jsonpatch
 odltools
 EOF
 python -m pip install -r requirements.txt
+# Todo: Workaround needs pinned version of odltool to the latest because of the
+# update in the dependency resolver in pip 21.3.
+# Ref: https://github.com/pypa/pip/issues/9215
+pip install odltools==0.1.34
 odltools -V
 pip freeze