summaryrefslogtreecommitdiffstats
path: root/runtests.sh
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-11-20 19:22:33 -0800
committerZac Medico <zmedico@gentoo.org>2010-11-23 18:07:37 -0800
commit2ba31a9e5084dddb5cdfcb1e95f1e9b3a3711cc3 (patch)
treec24e95422337c29a5aa857b00a8c58a875449094 /runtests.sh
parent35465e6dd2d0961df871db3bbceff44818768738 (diff)
downloadportage-2ba31a9e5084dddb5cdfcb1e95f1e9b3a3711cc3.tar.gz
portage-2ba31a9e5084dddb5cdfcb1e95f1e9b3a3711cc3.tar.bz2
portage-2ba31a9e5084dddb5cdfcb1e95f1e9b3a3711cc3.zip
runtests.sh: handle SIGINT
Diffstat (limited to 'runtests.sh')
-rwxr-xr-xruntests.sh7
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