X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Fcommon-variables.sh;h=7bbc36feaaff9a5499646b067597c8861f99dc5e;hb=refs%2Fchanges%2F36%2F8436%2F2;hp=20c1c5c7e8950e6542ea821510c345f48c9b98ca;hpb=a99cfe8b7c3e3b33cf9f210a90c50ea65128b30e;p=releng%2Fglobal-jjb.git diff --git a/shell/common-variables.sh b/shell/common-variables.sh index 20c1c5c7..7bbc36fe 100644 --- a/shell/common-variables.sh +++ b/shell/common-variables.sh @@ -20,3 +20,10 @@ 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" + # shellcheck source=/tmp/v/lftools/bin/activate disable=SC1091 + source "/tmp/v/lftools/bin/activate" +}