X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=blobdiff_plain;f=run_tests.sh;h=2519d94f648cac6ca17a75d9f33e1b9bf9926e44;hb=6bc4d2c813460cba201c390cc2380fb99bdc2c9d;hp=e093a20d315c838c80da70b50d6dad34347ca0c4;hpb=6f6ed9af46d616b073481799c157ed3bc88a8810;p=yardstick.git diff --git a/run_tests.sh b/run_tests.sh index e093a20d3..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 }