X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fcommon-variables.sh;h=6a5d2fb098a88c20703f18593e6805bed6162751;hb=6eefde1f463638b5021c2ec96eb67a017d379f1f;hp=20c1c5c7e8950e6542ea821510c345f48c9b98ca;hpb=a99cfe8b7c3e3b33cf9f210a90c50ea65128b30e;p=releng%2Fglobal-jjb.git diff --git a/shell/common-variables.sh b/shell/common-variables.sh index 20c1c5c7..6a5d2fb0 100644 --- a/shell/common-variables.sh +++ b/shell/common-variables.sh @@ -20,3 +20,12 @@ MAVEN_OPTIONS="$(echo --show-version \ -Dmaven.repo.local=/tmp/r \ -Dorg.ops4j.pax.url.mvn.localRepository=/tmp/r)" echo "$MAVEN_OPTIONS" + +# Activates the lftools virtualenv +lftools_activate() { + virtualenv --quiet "/tmp/v/lftools" + set +u # Ignore unbound variables in activate + # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091 + source "/tmp/v/lftools/bin/activate" + set -u # Restore unbound variable checking +}