From 707ba67bb6cb03ec470fc936ae6e026cb7db164a Mon Sep 17 00:00:00 2001 From: Theo Chatzimichos Date: Mon, 12 Aug 2013 14:13:27 +0200 Subject: Introduce new switch -2 for hard-calling python2 command python2 command doesn't work properly inside virtualenv --- bin/runtests | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'bin') 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 -- cgit v1.2.3-18-g5258