diff options
author | Morgan Richomme <morgan.richomme@orange.com> | 2017-08-11 12:14:01 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@opnfv.org> | 2017-08-11 12:14:01 +0000 |
commit | be3f797263efd68c1b2258719b60457937f910e0 (patch) | |
tree | 513954d4fba39c524376af751f2aa8e533eb53b4 /utils/test/reporting/run_test.sh | |
parent | 270d47819058ba5a2b36f71ddfb064e05653abeb (diff) | |
parent | 354afd448cefc348f185b9adc4b5e6d38f96a3b0 (diff) |
Merge "Initiate packetization of Testing reporting"
Diffstat (limited to 'utils/test/reporting/run_test.sh')
-rwxr-xr-x | utils/test/reporting/run_test.sh | 45 |
1 files changed, 2 insertions, 43 deletions
diff --git a/utils/test/reporting/run_test.sh b/utils/test/reporting/run_test.sh index 8c674ce5f..b83b550b8 100755 --- a/utils/test/reporting/run_test.sh +++ b/utils/test/reporting/run_test.sh @@ -1,44 +1,3 @@ #!/bin/bash -set -o errexit -set -o pipefail - - -# Get script directory -SCRIPTDIR=`dirname $0` - -# Creating virtual environment -if [ ! -z $VIRTUAL_ENV ]; then - venv=$VIRTUAL_ENV -else - venv=$SCRIPTDIR/.venv - virtualenv $venv -fi - -source $venv/bin/activate - -export CONFIG_REPORTING_YAML=$SCRIPTDIR/reporting.yaml - -# *************** -# Run unit tests -# *************** -echo "Running unit tests..." - -# install python packages -easy_install -U setuptools -easy_install -U pip -pip install -r $SCRIPTDIR/docker/requirements.pip -pip install -e $SCRIPTDIR - -python $SCRIPTDIR/setup.py develop - -# unit tests -# TODO: remove cover-erase -# To be deleted when all functest packages will be listed -nosetests --with-xunit \ - --cover-package=$SCRIPTDIR/utils \ - --with-coverage \ - --cover-xml \ - $SCRIPTDIR/tests/unit -rc=$? - -deactivate +tox +exit $? |