X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=blobdiff_plain;f=shell%2Ftox-run.sh;h=68a5af9420f2c13d898b44876bd0ed719fad6cf8;hb=c8b9acd166fcbd88139a65f7721e522980a0e013;hp=498ddc7f0d876509615fd95b866be670a9f98280;hpb=d315b074b6c0f82c83c50344103651c9411c4ce9;p=releng%2Fglobal-jjb.git diff --git a/shell/tox-run.sh b/shell/tox-run.sh index 498ddc7f..68a5af94 100644 --- a/shell/tox-run.sh +++ b/shell/tox-run.sh @@ -13,6 +13,9 @@ echo "---> tox-run.sh" # do not use -o pipefail set -eux +#Ensure that tox from tox-install.sh takes precedence. +PATH=$HOME/.local/bin:$PATH + ARCHIVE_TOX_DIR="$WORKSPACE/archives/tox" ARCHIVE_DOC_DIR="$WORKSPACE/archives/docs" mkdir -p "$ARCHIVE_TOX_DIR" @@ -27,8 +30,11 @@ if [[ -d /opt/pyenv ]]; then export TOX_TESTENV_PASSENV=PYTHONPATH fi +#Useful debug +tox --version + PARALLEL="${PARALLEL:-true}" -if [[ ${PARALLEL} = true ]]; then +if [[ ${PARALLEL,,} = true ]]; then if [[ -n ${TOX_ENVS:-} ]]; then tox -e "$TOX_ENVS" --parallel auto --parallel-live | tee -a "$ARCHIVE_TOX_DIR/tox.log" tox_status="${PIPESTATUS[0]}"