aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'bin/runtests')
-rwxr-xr-xbin/runtests3
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/runtests b/bin/runtests
index 0f83cb0..5615818 100755
--- a/bin/runtests
+++ b/bin/runtests
@@ -6,6 +6,7 @@ while getopts sa:dc arg; do
a) APPS=${OPTARG} ;;
d) TDAEMON="tdaemon -t django" ;;
c) COVERAGE="coverage" ;;
+ 2) SUFFIX="2" ;;
esac
done
@@ -18,7 +19,7 @@ elif [[ -n ${COVERAGE} ]]; then
${COVERAGE} run manage.py test --traceback ${SETTINGS} ${APPS}
${COVERAGE} report -m
else
- COMMAND="python2 manage.py test --traceback ${SETTINGS} ${APPS}"
+ COMMAND="python${SUFFIX} manage.py test --traceback ${SETTINGS} ${APPS}"
echo "Executing: $COMMAND"
$COMMAND
fi