From: ashishk1994 Date: Tue, 7 Feb 2017 10:35:09 +0000 (+0530) Subject: Releng environment in unit testing. X-Git-Tag: 0.2~900^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=1abee3f31ec5367a37be92ec408c0971f8770cc9;p=functest-xtesting.git Releng environment in unit testing. Most of modules in ci, openstack are dependent on opnfv_module. This patch will install the releng modules in unit test environment. Credits: https://gerrit.opnfv.org/gerrit/#/c/26501/2/run_unit_tests.sh Change-Id: Ibc5edeaf8439b8a5e874ee842c119480ed2e517b Signed-off-by: ashishk1994 --- diff --git a/run_unit_tests.sh b/run_unit_tests.sh index 606aedcd..d60a2d62 100755 --- a/run_unit_tests.sh +++ b/run_unit_tests.sh @@ -5,7 +5,7 @@ set -o pipefail # Either Workspace is set (CI) if [ -z $WORKSPACE ] then - WORKSPACE="." + WORKSPACE=`pwd` fi @@ -24,6 +24,13 @@ pip install --upgrade pip pip install -r $WORKSPACE/test-requirements.txt pip install $WORKSPACE +#install releng +cd $WORKSPACE/../ +git clone https://gerrit.opnfv.org/gerrit/releng +pip install releng/modules/ +rm -fr releng +cd $WORKSPACE + export CONFIG_FUNCTEST_YAML=$(pwd)/functest/ci/config_functest.yaml # unit tests # TODO: remove cover-erase