aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Chatzimichos <tampakrap@gentoo.org>2013-08-12 14:13:27 +0200
committerTheo Chatzimichos <tampakrap@gentoo.org>2013-08-12 14:13:27 +0200
commit707ba67bb6cb03ec470fc936ae6e026cb7db164a (patch)
tree9b3623f61f09dfe6e93501d72823a58a8d11bbe3 /bin/runtests
parentIgnore virtualenv directory from coverage reports (diff)
downloadidentity.gentoo.org-707ba67bb6cb03ec470fc936ae6e026cb7db164a.tar.gz
identity.gentoo.org-707ba67bb6cb03ec470fc936ae6e026cb7db164a.tar.bz2
identity.gentoo.org-707ba67bb6cb03ec470fc936ae6e026cb7db164a.zip
Introduce new switch -2 for hard-calling python2 command
python2 command doesn't work properly inside virtualenv
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