Issue: RELENG-2846
Change-Id: I5c3cd6bf8f4af887ba00aa2e1a4d42775caac80a
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
--- /dev/null
+---
+fixes:
+ - |
+ Fix the rtd verify script failure. The script attempts to install
+ lftools dev with --user and fails on the error.
+
+ Error:
+
+ [Errno 13] Permission denied: '/usr/local/lib/python3.6'
+
+ This code is actually required when a new commands are added to lftools,
+ the docs verify job needs to run the new command and install dev version
+ lftools version.
git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD
git submodule update
+
+# When a new commands are added in lftools, the docs verify job needs to
+# run the new command which requires installing the lftools dev version
if [[ $JOB_NAME == "lf-infra-lftools-rtd-verify-any" ]]; then
- # Install patchset lftools
- python3 -m pip install --user -e .
+ # shellcheck disable=SC1090
+ source ~/lf-env.sh
+ lf-activate-venv pip
+ pip install -e .
fi
echo "---> Generating docs"