X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=run_tests.sh;h=2519d94f648cac6ca17a75d9f33e1b9bf9926e44;hb=d2261da988e5aaf883575ca51fbdf8e5202dce5c;hp=d1567af9c0d5d691e7bc8f40a4fa93a94754867e;hpb=607148f8e4eb4ebb443dd5098b4fea5f880f9fbb;p=yardstick.git diff --git a/run_tests.sh b/run_tests.sh index d1567af9c..2519d94f6 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -9,7 +9,7 @@ # http://www.apache.org/licenses/LICENSE-2.0 ############################################################################## -# Run yardstick's test suite(s) +# Run yardstick's flake8, unit, coverage, functional test getopts ":f" FILE_OPTION @@ -33,7 +33,10 @@ run_flake8() { fi } + run_tests() { + echo "Get external libs needed for unit test" + echo "Running unittest ... " if [ $FILE_OPTION == "f" ]; then python -m unittest discover -v -s tests/unit > $logfile 2>&1 @@ -54,7 +57,7 @@ run_tests() { } run_coverage() { - source ci/cover.sh + source tests/ci/cover.sh run_coverage_test } @@ -74,6 +77,8 @@ run_functional_test() { fi } +export PYTHONPATH='yardstick/vTC/apexlake' + run_flake8 run_tests run_coverage