Update sandbox test steps to use python3 58/61958/4
authorAnil Belur <abelur@linuxfoundation.org>
Thu, 17 Oct 2019 10:12:19 +0000 (15:42 +0530)
committerAnil Belur <abelur@linuxfoundation.org>
Wed, 23 Oct 2019 06:28:09 +0000 (11:58 +0530)
By default virtualenv uses python2.7 which is going
to be EOL soon.

Change-Id: Ic06458f963deb276321299721c7a31291cf41bbd
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
docs/jenkins.rst

index 6b694de..fc10379 100644 (file)
@@ -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: