aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2013-08-22 20:13:41 +0200
committerMichał Górny <mgorny@gentoo.org>2013-08-23 12:48:23 +0200
commitfe647bd1fc114ef8223bad76133ccbe1e1c28027 (patch)
tree618c4a3421893d31127404ab3b198345117a4e85
parentMerge pull request #74 from mgorny/cipher-cleanup (diff)
downloadidentity.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-xbin/runtests7
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