From: Zac Medico Date: Sun, 21 Nov 2010 03:22:33 +0000 (-0800) Subject: runtests.sh: handle SIGINT X-Git-Tag: v2.1.9.25~21 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2ba31a9e5084dddb5cdfcb1e95f1e9b3a3711cc3;p=portage.git runtests.sh: handle SIGINT --- 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