Get rid of easy_install in unit test
authorhelenyao <yaohelan@huawei.com>
Tue, 6 Dec 2016 02:41:07 +0000 (21:41 -0500)
committerhelenyao <yaohelan@huawei.com>
Wed, 7 Dec 2016 07:54:33 +0000 (02:54 -0500)
JIRA: FUNCTEST-638

Pip is a better alternative to Easy Install for installing Python packages.
There is no need to install easy_install.

Change-Id: I3dee17a800d11907c7f0942bff251a93675978bb
Signed-off-by: helenyao <yaohelan@huawei.com>
run_unit_tests.sh

index 05b3c4e..ecd57d8 100755 (executable)
@@ -41,14 +41,10 @@ virtualenv $WORKSPACE/functest_venv
 source $WORKSPACE/functest_venv/bin/activate
 
 # install python packages
-easy_install -U setuptools
-easy_install -U pip
+sudo apt-get install -y build-essential python-dev python-pip
+pip install --upgrade pip
 pip install -r $WORKSPACE/test-requirements.txt
-
-
-pip install -e $WORKSPACE
-
-python $WORKSPACE/setup.py develop
+pip install $WORKSPACE
 
 export CONFIG_FUNCTEST_YAML=$(pwd)/functest/ci/config_functest.yaml
 # unit tests