Merge lp:~jelmer/subunit/notify-if into lp:~subunit/subunit/trunk

Proposed by Jelmer Vernooij
Status: Merged
Merged at revision: not available
Proposed branch: lp:~jelmer/subunit/notify-if
Merge into: lp:~subunit/subunit/trunk
Diff against target: 25 lines (+8/-1)
1 file modified
filters/subunit-notify (+8/-1)
To merge this branch: bzr merge lp:~jelmer/subunit/notify-if
Reviewer Review Type Date Requested Status
Subunit Developers Pending
Review via email: mp+17534@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Trivial patch that adds a --forward option to subunit-notify.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'filters/subunit-notify'
2--- filters/subunit-notify 2010-01-14 11:03:56 +0000
3+++ filters/subunit-notify 2010-01-17 05:49:11 +0000
4@@ -31,13 +31,20 @@
5 parser = OptionParser(description=__doc__)
6 parser.add_option("--no-passthrough", action="store_true",
7 help="Hide all non subunit input.", default=False, dest="no_passthrough")
8+parser.add_option("-f", "--forward", action="store_true", default=False,
9+ help="Forward subunit stream on stdout.")
10 (options, args) = parser.parse_args()
11 result = TestResultStats(sys.stdout)
12 if options.no_passthrough:
13 passthrough_stream = DiscardStream()
14 else:
15 passthrough_stream = None
16-test = ProtocolTestCase(sys.stdin, passthrough=passthrough_stream)
17+if options.forward:
18+ forward_stream = sys.stdout
19+else:
20+ forward_stream = None
21+test = ProtocolTestCase(sys.stdin, passthrough=passthrough_stream,
22+ forward=forward_stream)
23 test.run(result)
24 if result.failed_tests > 0:
25 summary = "Test run failed"

Subscribers

People subscribed via source and target branches