summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authordongwenjuan <dong.wenjuan@zte.com.cn>2017-08-07 14:28:37 +0800
committerdongwenjuan <dong.wenjuan@zte.com.cn>2017-08-07 14:28:37 +0800
commit82dccaf2306779f70bf443c917120bc1992b2ee3 (patch)
tree4b416ffa4492cc90d5f0297d075b6b8e307bfcde /tests/run.sh
parent9549a92ad62fbbad00e355b707809e6409b9e085 (diff)
install python packages
Change-Id: Id68c9b1206deb58ff94fc942fbef94bffbc1e68b Signed-off-by: dongwenjuan <dong.wenjuan@zte.com.cn>
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-xtests/run.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/run.sh b/tests/run.sh
index 5c922265..abdad58c 100755
--- a/tests/run.sh
+++ b/tests/run.sh
@@ -478,6 +478,13 @@ cleanup() {
done
}
+setup_python_packages() {
+ sudo pip install flask==0.10.1
+ command -v openstack || sudo pip install python-openstackclient==2.3.0
+ command -v ceilometer || sudo pip install python-ceilometerclient==2.6.2
+ command -v congress || sudo pip install python-congressclient==1.5.0
+}
+
# Main process
if [[ $PYTHON_ENABLE == [Tt]rue ]]; then
@@ -499,6 +506,8 @@ git log --oneline -1 || true # ignore even you don't have git installed
trap cleanup EXIT
+setup_python_packages
+
source $TOP_DIR/functions-common
source $TOP_DIR/lib/installer
source $TOP_DIR/lib/inspector