From: Anil Belur Date: Thu, 17 Oct 2019 10:12:19 +0000 (+0530) Subject: Update sandbox test steps to use python3 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F58%2F61958%2F4;p=releng%2Fdocs.git Update sandbox test steps to use python3 By default virtualenv uses python2.7 which is going to be EOL soon. Change-Id: Ic06458f963deb276321299721c7a31291cf41bbd Signed-off-by: Anil Belur --- diff --git a/docs/jenkins.rst b/docs/jenkins.rst index 6b694de..fc10379 100644 --- a/docs/jenkins.rst +++ b/docs/jenkins.rst @@ -492,11 +492,11 @@ Example code for lftools changes: # For example replace ${GERRIT_REFSPEC} with 'refs/changes/81/15881/2' git fetch "https://gerrit.linuxfoundation.org/infra/releng/lftools" ${GERRIT_REFSPEC} && git cherry-pick --ff --keep-redundant-commits FETCH_HEAD git log --pretty=format:"%h%x09%an%x09%s" -n5 - virtualenv --quiet "/tmp/lftools-env" + virtualenv --quiet -p $(which python3) "/tmp/lftools-env" set +u source "/tmp/lftools-env/bin/activate" set -u - pip install --quiet -r requirements.txt -e . + pip3 install --quiet -r requirements.txt -e . cd ${WORKSPACE} Example code for global-jjb changes: