summaryrefslogtreecommitdiff
path: root/selftest/format-subunit
diff options
context:
space:
mode:
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)