diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2010-03-30 02:39:50 +0200 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2010-03-31 02:20:07 +0200 |
commit | ae5381d34c75918f7fa49654585d277bbfe66f49 (patch) | |
tree | dbe06f7a4c28de4b5593d0762092740a3f318809 /selftest/format-subunit | |
parent | 2699db3fe033b2b048de0d9a3ef21aee6b0da16c (diff) | |
download | samba-ae5381d34c75918f7fa49654585d277bbfe66f49.tar.gz |
format-subunit: Avoid printing backtrace on Ctrl-C.
Diffstat (limited to 'selftest/format-subunit')
-rwxr-xr-x | selftest/format-subunit | 6 |
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) |