From fd0bb7bf8d11a35c0c28a783e1657a12a5681f9b Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 20 Nov 2010 19:22:33 -0800 Subject: runtests.sh: handle SIGINT --- runtests.sh | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/runtests.sh b/runtests.sh index c228dce56..dc3343fe9 100755 --- a/runtests.sh +++ b/runtests.sh @@ -15,6 +15,13 @@ 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 -- cgit v1.2.3-1-g7c22