aboutsummaryrefslogtreecommitdiffstats
path: root/run_tests.sh
diff options
context:
space:
mode:
authorHou Jingwen <houjingwen@huawei.com>2015-11-05 09:03:09 +0000
committerGerrit Code Review <gerrit@172.30.200.206>2015-11-05 09:03:09 +0000
commit71413bb440af953d20a0dfc52ef710ea1618cd90 (patch)
treeb102e3483d045a6e8d459f6c41094b0db7c1bdf0 /run_tests.sh
parent7209b9b3f9aedaba4ed1ae91c78641a29d84ba0c (diff)
parent607148f8e4eb4ebb443dd5098b4fea5f880f9fbb (diff)
Merge "part 2 :add coverage report in Jenkins for Yardstick"
Diffstat (limited to 'run_tests.sh')
-rwxr-xr-xrun_tests.sh13
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