summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authorwenjuan dong <dong.wenjuan@zte.com.cn>2017-07-27 01:29:50 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-07-27 01:29:50 +0000
commit3e0300e8f9695348aa4564f87a23ac3c0cf737ff (patch)
tree7d052cb88d375f6fb731f7c75d5a54510a272170 /tests/run.sh
parent6b117129e778b4877b17cf594aec57fb029cb83d (diff)
parentcbb58ee4050a201c0125b0b0b1a7c8f162925849 (diff)
Merge "fix some bugs for python verify jobs:"
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/run.sh b/tests/run.sh
index b838adab..5c922265 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