summaryrefslogtreecommitdiff
path: root/filters
diff options
context:
space:
mode:
authorJohn Arbash Meinel <john@arbash-meinel.com>2011-06-30 13:20:40 +0200
committerJohn Arbash Meinel <john@arbash-meinel.com>2011-06-30 13:20:40 +0200
commit524ce5ab1b2c2636e6bc2b946a8f4ffb73333fd2 (patch)
tree24ddbb14d9b38ebc763de24de2133b9a18c9537a /filters
parent5e253664622c775e7f80e49b7835f3e0405b855b (diff)
downloadsubunit-524ce5ab1b2c2636e6bc2b946a8f4ffb73333fd2.tar.gz
Add -F to suppress everything that isn't a failure/error.
Diffstat (limited to 'filters')
-rwxr-xr-xfilters/subunit-filter12
1 files changed, 12 insertions, 0 deletions
diff --git a/filters/subunit-filter b/filters/subunit-filter
index 567999c..3cd1512 100755
--- a/filters/subunit-filter
+++ b/filters/subunit-filter
@@ -69,8 +69,20 @@ parser.add_option("--fixup-expected-failures", type=str,
parser.add_option("--without", type=str,
help="regexp to exclude (case-sensitive by default)",
action="append", dest="without_regexps")
+# TODO: This could be done as a callback to allow following options to override
+# parts. As is, we just use it as a big hammer...
+parser.add_option("-F", "--only-genuine-failures", action="store_true",
+ default=False,
+ help="Only pass through failures and exceptions.")
(options, args) = parser.parse_args()
+if options.only_genuine_failures:
+ options.success = True
+ options.skip = True
+ options.xfail = True
+ options.no_passthrough = True
+ # options.error = False
+ # options.failures = False
def _compile_re_from_list(l):