fi
git fetch origin "$GERRIT_REFSPEC" && git checkout FETCH_HEAD
-git submodule update
+git submodule update --init --recursive
for submod in $(git config -f .gitmodules --get-regexp '^submodule\.(.+)\.url' | awk -e '{print $1}'); do
git config --get "$submod"
done
+# shellcheck disable=SC1090
+. ~/lf-env.sh
+
+lf-activate-venv --venv-file /tmp/.toxenv tox virtualenv
+
# 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
- # shellcheck disable=SC1090
- source ~/lf-env.sh
- lf-activate-venv pip
pip install -e .
fi