From 94e64cd59dd36311ae493dba659023dffd947648 Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 27 Dec 2009 14:13:58 +0100 Subject: [PATCH] Improve the unittest runner This uses only existing python interpreters and does a cleanup before building the unittest, to help with stale objects. --- run-tests.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/run-tests.sh b/run-tests.sh index fb71aab..a7149e2 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -2,8 +2,14 @@ set -e -for ver in 2.4 2.5 2.6 3.0; do +for ver in 2.4 2.5 2.6 3.0 3.1; do + if ! type python$ver >/dev/null; then + echo Skipping python$ver + continue + fi + echo Testing using python$ver rm -f xattr.so + python$ver ./setup.py clean python$ver ./setup.py build_ext -i PYTHONPATH=. python$ver ./test/test_xattr.py done -- 2.39.2