git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2699db3
)
format-subunit: Avoid printing backtrace on Ctrl-C.
author
Jelmer Vernooij
<jelmer@samba.org>
Tue, 30 Mar 2010 00:39:50 +0000
(
02:39
+0200)
committer
Jelmer Vernooij
<jelmer@samba.org>
Wed, 31 Mar 2010 00:20:07 +0000
(
02:20
+0200)
selftest/format-subunit
patch
|
blob
|
history
diff --git
a/selftest/format-subunit
b/selftest/format-subunit
index 37470828390e8579a1510d3ed4ff9e1a8abd0df8..f7d09e835c16193c0d2c9d162c7f90312db6f265 100755
(executable)
--- 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)