summaryrefslogtreecommitdiff
path: root/selftest/format-subunit
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-03-30 02:39:50 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-03-31 02:20:07 +0200
commitae5381d34c75918f7fa49654585d277bbfe66f49 (patch)
treedbe06f7a4c28de4b5593d0762092740a3f318809 /selftest/format-subunit
parent2699db3fe033b2b048de0d9a3ef21aee6b0da16c (diff)
downloadsamba-ae5381d34c75918f7fa49654585d277bbfe66f49.tar.gz
samba-ae5381d34c75918f7fa49654585d277bbfe66f49.tar.bz2
samba-ae5381d34c75918f7fa49654585d277bbfe66f49.zip
format-subunit: Avoid printing backtrace on Ctrl-C.
Diffstat (limited to 'selftest/format-subunit')
-rwxr-xr-xselftest/format-subunit6
1 files changed, 5 insertions, 1 deletions
diff --git a/selftest/format-subunit b/selftest/format-subunit
index 3747082839..f7d09e835c 100755
--- a/selftest/format-subunit
+++ b/selftest/format-subunit
@@ -6,8 +6,8 @@
import optparse
import os
+import signal
import sys
-
import subunithelper
class PlainFormatter(object):
@@ -188,6 +188,10 @@ statistics = {
'TESTS_SKIP': 0,
}
+def handle_sigint(sig, stack):
+ sys.exit(0)
+signal.signal(signal.SIGINT, handle_sigint)
+
msg_ops = PlainFormatter(os.path.join(opts.prefix, "summary"), opts.verbose,
opts.immediate, statistics)