aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorashishk1994 <ashishk.iiit@gmail.com>2017-02-07 16:05:09 +0530
committerashishk1994 <ashishk.iiit@gmail.com>2017-02-07 16:05:17 +0530
commit1abee3f31ec5367a37be92ec408c0971f8770cc9 (patch)
tree24669700c59815eb415e68bc5eef54e9b1d5b03d
parentec94112aa52507727425005458264335352ac6e8 (diff)
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 <ashishk.iiit@gmail.com>
-rwxr-xr-xrun_unit_tests.sh9
1 files changed, 8 insertions, 1 deletions
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