211: run-tests.bash now echos the number of versions the tests ran under

This commit is contained in:
Jason Gerard DeRose 2008-08-28 02:35:11 +00:00
parent 039b9a2a9b
commit 81d0726f5e

View File

@ -6,10 +6,10 @@ versions="python2.4 python2.5 python2.6"
for name in $versions
do
echo ""
executable="/usr/bin/$name"
if [[ -f $executable ]]; then
echo "[ $name: Starting tests... ]"
((runs += 1))
if $executable /usr/bin/nosetests
then
echo "[ $name: Tests OK ]"
@ -20,10 +20,12 @@ do
else
echo "[ $name: Not found ]"
fi
echo ""
done
if [ $failures ]; then
echo ""
echo "[ FAILED under $failures version(s) ]"
echo "[ Ran under $runs version(s); FAILED under $failures version(s) ]"
exit $failures
else
echo "[ Ran under $runs version(s); all OK ]"
fi