Code Review
/
yardstick.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Merge "Add raw image support for lxd scenario" into stable/colorado
[yardstick.git]
/
run_tests.sh
diff --git
a/run_tests.sh
b/run_tests.sh
index
b4ddc94
..
972f6a2
100755
(executable)
--- a/
run_tests.sh
+++ b/
run_tests.sh
@@
-9,7
+9,7
@@
# http://www.apache.org/licenses/LICENSE-2.0
##############################################################################
# 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
getopts ":f" FILE_OPTION
@@
-53,6
+53,11
@@
run_tests() {
fi
}
fi
}
+run_coverage() {
+ source tests/ci/cover.sh
+ run_coverage_test
+}
+
run_functional_test() {
mkdir -p .testrepository
run_functional_test() {
mkdir -p .testrepository
@@
-62,8
+67,16
@@
run_functional_test() {
EXIT_CODE=$?
subunit-stats < .testrepository/subunit.log
EXIT_CODE=$?
subunit-stats < .testrepository/subunit.log
- exit $EXIT_CODE
+ if [ $EXIT_CODE -ne 0 ]; then
+ exit 1
+ else
+ echo "OK"
+ fi
}
}
+
+export PYTHONPATH='yardstick/vTC/apexlake'
+
run_flake8
run_tests
run_flake8
run_tests
+run_coverage
run_functional_test
run_functional_test