From 1abee3f31ec5367a37be92ec408c0971f8770cc9 Mon Sep 17 00:00:00 2001 From: ashishk1994 Date: Tue, 7 Feb 2017 16:05:09 +0530 Subject: [PATCH] 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 --- run_unit_tests.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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 -- 2.16.6