summaryrefslogtreecommitdiff
path: root/selftest/filter-subunit
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-09-26 18:56:50 -0700
committerJelmer Vernooij <jelmer@samba.org>2010-09-28 09:12:38 +0200
commit71f88c45a751e5f72de00dee0628b5c1b6614bf3 (patch)
treea1f82bab508a7db44b2eb773dba9ae018b9ba0cb /selftest/filter-subunit
parentc7f6ab890e8e70f27ddc975abec58b5e0cf8d6a5 (diff)
downloadsamba-71f88c45a751e5f72de00dee0628b5c1b6614bf3.tar.gz
samba-71f88c45a751e5f72de00dee0628b5c1b6614bf3.tar.bz2
samba-71f88c45a751e5f72de00dee0628b5c1b6614bf3.zip
filter-subunit: added a --fail-immediately option
Diffstat (limited to 'selftest/filter-subunit')
-rwxr-xr-xselftest/filter-subunit5
1 files changed, 4 insertions, 1 deletions
diff --git a/selftest/filter-subunit b/selftest/filter-subunit
index f5ab660350..9b46d616f4 100755
--- a/selftest/filter-subunit
+++ b/selftest/filter-subunit
@@ -19,6 +19,8 @@ parser.add_option("--expected-failures", type="string",
"failures")
parser.add_option("--strip-passed-output", action="store_true",
help="Whether to strip output from tests that passed")
+parser.add_option("--fail-immediately", action="store_true",
+ help="Whether to stop on the first error", default=False)
parser.add_option("--prefix", type="string",
help="Add prefix to all test names")
@@ -45,6 +47,7 @@ signal.signal(signal.SIGINT, handle_sigint)
out = subunithelper.SubunitOps(sys.stdout)
msg_ops = subunithelper.FilterOps(out, opts.prefix, expected_failures,
- opts.strip_passed_output)
+ opts.strip_passed_output,
+ fail_immediately=opts.fail_immediately)
sys.exit(subunithelper.parse_results(msg_ops, statistics, sys.stdin))