X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=run_unit_tests.sh;h=9780de7acf72e176ed0c775b502b050469c67554;hb=ee26a1ca85fc5fac6df6c39f362fad83de73c0cc;hp=5167d78c6b0a37c3ea0b291a02c0552683a32138;hpb=40c99a7b178ec081bf7711bb82dcce70ea7c3324;p=functest.git diff --git a/run_unit_tests.sh b/run_unit_tests.sh index 5167d78c6..9780de7ac 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,18 +24,17 @@ pip install --upgrade pip pip install -r $WORKSPACE/test-requirements.txt pip install $WORKSPACE +#install releng +rm -rf releng-unittests +git clone --depth 1 https://gerrit.opnfv.org/gerrit/releng releng-unittests +pip install releng-unittests/modules/ +rm -fr releng-unittests + export CONFIG_FUNCTEST_YAML=$(pwd)/functest/ci/config_functest.yaml -# unit tests -# TODO: remove cover-erase -# To be deleted when all functest packages will be listed nosetests --with-xunit \ --with-coverage \ - --cover-erase \ --cover-tests \ - --cover-package=functest.cli \ - --cover-package=functest.core.testcase_base \ - --cover-package=functest.opnfv_tests.sdn.odl.odl \ - --cover-package=functest.utils \ + --cover-package=functest \ --cover-xml \ --cover-html \ --log-config=$(pwd)/functest/tests/unit/test_logging.ini \