diff options
author | Hou Jingwen <houjingwen@huawei.com> | 2015-11-05 09:03:09 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@172.30.200.206> | 2015-11-05 09:03:09 +0000 |
commit | 71413bb440af953d20a0dfc52ef710ea1618cd90 (patch) | |
tree | b102e3483d045a6e8d459f6c41094b0db7c1bdf0 /run_tests.sh | |
parent | 7209b9b3f9aedaba4ed1ae91c78641a29d84ba0c (diff) | |
parent | 607148f8e4eb4ebb443dd5098b4fea5f880f9fbb (diff) |
Merge "part 2 :add coverage report in Jenkins for Yardstick"
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-x | run_tests.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/run_tests.sh b/run_tests.sh index b4ddc94ce..d1567af9c 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -53,6 +53,11 @@ run_tests() { fi } +run_coverage() { + source ci/cover.sh + run_coverage_test +} + run_functional_test() { mkdir -p .testrepository @@ -62,8 +67,14 @@ run_functional_test() { EXIT_CODE=$? subunit-stats < .testrepository/subunit.log - exit $EXIT_CODE + if [ $EXIT_CODE -ne 0 ]; then + exit 1 + else + echo "OK" + fi } + run_flake8 run_tests +run_coverage run_functional_test |