From fe647bd1fc114ef8223bad76133ccbe1e1c28027 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 22 Aug 2013 20:13:41 +0200 Subject: runtests: pass remaining arguments as apps to the runner. And remove the '-a' option. It was pretty custom, and allowed only a single application to be passed. Now you can pass multiple apps, in the same form as for the runner. --- bin/runtests | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'bin') diff --git a/bin/runtests b/bin/runtests index f7f2197..5060cf3 100755 --- a/bin/runtests +++ b/bin/runtests @@ -3,7 +3,6 @@ while getopts sa:dc arg; do case ${arg} in s) SETTINGS="--settings=okupy.tests.settings" ;; - a) APPS=${OPTARG} ;; d) TDAEMON="tdaemon -t django" ;; c) COVERAGE="coverage" ;; 2) SUFFIX="2" ;; @@ -12,12 +11,12 @@ done if [[ -n ${TDAEMON} ]]; then [[ -n ${COVERAGE} ]] && COVERAGE="-c" - ${TDAEMON} ${COVERAGE} --custom-args="${SETTINGS} ${APPS}" + ${TDAEMON} ${COVERAGE} --custom-args="${SETTINGS} ${*:${OPTIND}}" elif [[ -n ${COVERAGE} ]]; then - ${COVERAGE} run manage.py test --traceback ${SETTINGS} ${APPS} + ${COVERAGE} run manage.py test --traceback ${SETTINGS} "${@:${OPTIND}}" ${COVERAGE} report -m else - COMMAND="python${SUFFIX} manage.py test --traceback ${SETTINGS} ${APPS}" + COMMAND="python${SUFFIX} manage.py test --traceback ${SETTINGS} ${*:${OPTIND}}" echo "Executing: $COMMAND" $COMMAND fi -- cgit v1.2.3