aboutsummaryrefslogtreecommitdiffstats
path: root/run_unit_tests.sh
diff options
context:
space:
mode:
authorhelenyao <yaohelan@huawei.com>2016-12-05 21:41:07 -0500
committerhelenyao <yaohelan@huawei.com>2016-12-07 02:54:33 -0500
commit010ccc19dc86ee10c13e8d48f19df481b75e1e17 (patch)
tree6644ef536b6478bd407a704bc0f4b533fd0a8982 /run_unit_tests.sh
parentc10898356f97b3f2e5c39928e4133570b75a52e1 (diff)
Get rid of easy_install in unit test
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>
Diffstat (limited to 'run_unit_tests.sh')
-rwxr-xr-xrun_unit_tests.sh10
1 files changed, 3 insertions, 7 deletions
diff --git a/run_unit_tests.sh b/run_unit_tests.sh
index 05b3c4ee..ecd57d8a 100755
--- a/run_unit_tests.sh
+++ b/run_unit_tests.sh
@@ -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