summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xselftest/filter-subunit10
1 files changed, 10 insertions, 0 deletions
diff --git a/selftest/filter-subunit b/selftest/filter-subunit
index 84b6610480..5f062d12a2 100755
--- a/selftest/filter-subunit
+++ b/selftest/filter-subunit
@@ -25,8 +25,18 @@ parser.add_option("--prefix", type="string",
help="Add prefix to all test names")
parser.add_option("--fail-on-empty", default=False,
action="store_true", help="Fail if there was no subunit output")
+parser.add_option("--list", default=False,
+ action="store_true", help="Operate in list mode")
opts, args = parser.parse_args()
+if opts.list:
+ prefix = opts.prefix
+ if not prefix:
+ prefix = ""
+ for l in sys.stdin:
+ sys.stdout.write("%s%s\n" % (prefix, l.rstrip()))
+ sys.exit(0)
+
if opts.expected_failures:
expected_failures = subunithelper.read_test_regexes(opts.expected_failures)
else: