update default mode.

Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
This commit is contained in:
Bo-Yi Wu 2016-07-20 21:10:08 +08:00
parent ac71f41f45
commit 8a0772849a
1 changed files with 3 additions and 2 deletions

View File

@ -41,6 +41,7 @@ EOF
testing() { testing() {
test -f ${junit_report} && rm -f ${junit_report} test -f ${junit_report} && rm -f ${junit_report}
coverage_mode=$@ coverage_mode=$@
output "Running ${coverage_mode} mode for coverage."
for pkg in $packages; do for pkg in $packages; do
f="$workdir/$(echo $pkg | tr / -).cover" f="$workdir/$(echo $pkg | tr / -).cover"
output "Testing coverage report for ${pkg}" output "Testing coverage report for ${pkg}"
@ -78,8 +79,8 @@ case "$1" in
"") "")
show_help ;; show_help ;;
testing) testing)
mode=$2 mode="set"
test -z $mode && mode="set" test -z $2 || mode=$2
testing $mode ;; testing $mode ;;
coverage) coverage)
generate_cover_report ;; generate_cover_report ;;