From 6102e9f56d93894c74413f43eaebb369f6df790f Mon Sep 17 00:00:00 2001 From: Adam Hupp Date: Thu, 16 Aug 2018 07:57:21 -0700 Subject: Make test runner handle missing python versions, based on a change from Corin-EU --- test/run.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/test/run.sh b/test/run.sh index 8c687cb..529956f 100755 --- a/test/run.sh +++ b/test/run.sh @@ -1,12 +1,19 @@ #!/bin/sh +set -e; # ensure we can use unicode filenames in the test export LC_ALL=en_US.UTF-8 THISDIR=`dirname $0` export PYTHONPATH=${THISDIR}/.. -echo "python2.7" -python2.7 ${THISDIR}/test.py -echo "python3.0" -python3 ${THISDIR}/test.py +PYTHONS="python2.7 python3.5 bad" + +for pyver in $PYTHONS; do + if which $pyver > /dev/null; then + $pyver ${THISDIR}/test.py + else + echo "version $pyver not found" + + fi +done -- cgit v1.2.1