aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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