X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=tests%2Frun.sh;h=713e494b206e979d6615d0455312b14e6f41dbf5;hb=cbb58ee4050a201c0125b0b0b1a7c8f162925849;hp=fda1e75389996e223b57dc5bec64fc8e18ce0ccd;hpb=41fc677e7f6349d28ec938fe6ac9ff03e99894f1;p=doctor.git diff --git a/tests/run.sh b/tests/run.sh index fda1e753..713e494b 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -480,7 +480,14 @@ cleanup() { # Main process -if $PYTHON_ENABLE; then +if [[ $PYTHON_ENABLE == [Tt]rue ]]; then + which tox || sudo pip install tox + if [ -f /usr/bin/apt-get ]; then + sudo apt-get install -y python3-dev + elif [ -f /usr/bin/yum ] ; then + sudo yum install -y python3-devel + fi + cd $TOP_DIR echo "executing tox..." tox