Fix: Use pyenv for PyPI verify jobs 95/70795/1
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 4 Oct 2022 01:15:08 +0000 (11:15 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 4 Oct 2022 01:24:37 +0000 (11:24 +1000)
commit8e77f700bd14d85c5862cc71fa38a2b8655fe214
tree4e8cece99b86f2460f52f7d64cb0235ebf7b7ae4
parent1d572dc0110bdd1d9881fa6b4f2d60d43b6138da
Fix: Use pyenv for PyPI verify jobs

PyPI verify jobs requires Python 3.x. The tox run picks up default version
of python instead of the version made available through pyenv.

To fix this Re-factor lf-activate-venv() to skip a return, while the venv is
re-used, so that the PATH can be set.

Update the tox install and run script to Call lf-avtivate-venv().

Issue-ID: https://jira.linuxfoundation.org/browse/RELENG-4468
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Change-Id: Ibde3ba8beb5be75fa69c9ee6cf36a80768a8f368
jenkins-init-scripts/lf-env.sh
releasenotes/notes/refactor-tox-pyenv-f5b3aac7eec3725d.yaml [new file with mode: 0644]
shell/tox-install.sh
shell/tox-run.sh