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