Releng environment in unit testing. 15/28215/1
authorashishk1994 <ashishk.iiit@gmail.com>
Tue, 7 Feb 2017 10:35:09 +0000 (16:05 +0530)
committerashishk1994 <ashishk.iiit@gmail.com>
Tue, 7 Feb 2017 10:35:17 +0000 (16:05 +0530)
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>
run_unit_tests.sh

index 606aedc..d60a2d6 100755 (executable)
@@ -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