Suggest --autounmask-keep-masks instead of --autounmask=n
[portage.git] / runtests.sh
index 2ba05e3e2666927a87d51ac1c7983fb08dc038fc..981fa1ec2ebad9b507ad2141d3b3a74b47133fb6 100755 (executable)
@@ -1,6 +1,8 @@
 #!/bin/bash
+# Copyright 2010-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
 
-PYTHON_VERSIONS="2.6 2.7 3.1 3.2"
+PYTHON_VERSIONS="2.6 2.7 3.1 3.2 3.3"
 
 case "${NOCOLOR:-false}" in
        yes|true)
@@ -15,11 +17,18 @@ case "${NOCOLOR:-false}" in
                ;;
 esac
 
+interrupted() {
+       echo "interrupted." >&2
+       exit 1
+}
+
+trap interrupted SIGINT
+
 exit_status="0"
 for version in ${PYTHON_VERSIONS}; do
        if [[ -x /usr/bin/python${version} ]]; then
                echo -e "${GOOD}Testing with Python ${version}...${NORMAL}"
-               if ! PYTHONPATH="pym${PYTHONPATH:+:}${PYTHONPATH}" /usr/bin/python${version} pym/portage/tests/runTests; then
+               if ! /usr/bin/python${version} -Wd pym/portage/tests/runTests "$@" ; then
                        echo -e "${BAD}Testing with Python ${version} failed${NORMAL}"
                        exit_status="1"
                fi