diff options
author | Michał Górny <mgorny@gentoo.org> | 2013-08-22 20:13:41 +0200 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2013-08-23 12:48:23 +0200 |
commit | fe647bd1fc114ef8223bad76133ccbe1e1c28027 (patch) | |
tree | 618c4a3421893d31127404ab3b198345117a4e85 | |
parent | Merge pull request #74 from mgorny/cipher-cleanup (diff) | |
download | identity.gentoo.org-fe647bd1fc114ef8223bad76133ccbe1e1c28027.tar.gz identity.gentoo.org-fe647bd1fc114ef8223bad76133ccbe1e1c28027.tar.bz2 identity.gentoo.org-fe647bd1fc114ef8223bad76133ccbe1e1c28027.zip |
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.
-rwxr-xr-x | bin/runtests | 7 |
1 files changed, 3 insertions, 4 deletions
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 |