diff --git a/modules/jenkins/files/slave_scripts/run-tox.sh b/modules/jenkins/files/slave_scripts/run-tox.sh index 6909c37d6c..ab8e79b3d6 100755 --- a/modules/jenkins/files/slave_scripts/run-tox.sh +++ b/modules/jenkins/files/slave_scripts/run-tox.sh @@ -40,6 +40,11 @@ sudo /usr/local/jenkins/slave_scripts/jenkins-sudo-grep.sh pre /usr/local/jenkins/slave_scripts/select-mirror.sh $org $project +# Workaround the combo of tox running setup.py outside of virtualenv +# and RHEL having an old distribute. The next line can be removed +# when either get fixed. +python setup.py --version 2>/dev/null + tox -e$venv result=$?