X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=run_unit_tests.sh;h=d60a2d623fc9bce94a8e97d1cd74cd2ef21d5f5e;hb=e9334da17298cfeff4ccfb079bb3e3908e85c0e2;hp=79d05d3d17f6a8556f2e9823cf70ef2798561eee;hpb=b58dd104d03db315df1d8c6607e6e8a2cf19aef5;p=functest.git diff --git a/run_unit_tests.sh b/run_unit_tests.sh index 79d05d3d1..d60a2d623 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 @@ -36,8 +43,10 @@ nosetests --with-xunit \ --cover-package=functest.core.testcase_base \ --cover-package=functest.opnfv_tests.sdn.odl.odl \ --cover-package=functest.utils \ + --cover-package=functest.opnfv_tests.openstack.rally \ --cover-xml \ --cover-html \ + --log-config=$(pwd)/functest/tests/unit/test_logging.ini \ functest/tests/unit rc=$?