Fix: Update lf-activate-venv
[releng/builder.git] / jjb / integration / copy-common-functions.sh
index 1ff42d0910536b544f3bb6e2f763f46e659c96f0..660dbacaf6a3dc1eb174dae20e358d2f4d96bb0a 100644 (file)
@@ -7,7 +7,14 @@
 # script is executing rather than being sourced. When executed the condition
 # is true and copies the script. In the false path this copy below is skipped
 # and the sourcing continues so that the appended common-function.sh ends up sourced.
-if [ "${BASH_SOURCE[0]}" == "${0}" ]; then
+if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
+    # shellcheck disable=SC1090
+    . ~/lf-env.sh
+
+    lf-activate-venv --python python3 \
+        python-heatclient \
+        python-openstackclient
+
     echo "Copying common-functions.sh to /tmp"
     cp "${0}" /tmp/common-functions.sh