From 2ba31a9e5084dddb5cdfcb1e95f1e9b3a3711cc3 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 20 Nov 2010 19:22:33 -0800 Subject: [PATCH] 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 -- 2.26.2