diff options
author | Zac Medico <zmedico@gentoo.org> | 2010-11-20 19:22:33 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2010-11-23 18:07:37 -0800 |
commit | 2ba31a9e5084dddb5cdfcb1e95f1e9b3a3711cc3 (patch) | |
tree | c24e95422337c29a5aa857b00a8c58a875449094 | |
parent | 35465e6dd2d0961df871db3bbceff44818768738 (diff) | |
download | portage-2ba31a9e5084dddb5cdfcb1e95f1e9b3a3711cc3.tar.gz portage-2ba31a9e5084dddb5cdfcb1e95f1e9b3a3711cc3.tar.bz2 portage-2ba31a9e5084dddb5cdfcb1e95f1e9b3a3711cc3.zip |
runtests.sh: handle SIGINT
-rwxr-xr-x | runtests.sh | 7 |
1 files changed, 7 insertions, 0 deletions
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 |