summaryrefslogtreecommitdiff
path: root/selftest/format-subunit
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2010-03-28 21:45:42 +0200
committerJelmer Vernooij <jelmer@samba.org>2010-03-28 21:46:58 +0200
commit235cd3e5c462fd559f9ac58f6336e6a9de4b1000 (patch)
tree1907d469fe3682945dd628577b7ed8f1697dc04a /selftest/format-subunit
parentb607f9968818811759ee744afeebab4880d2c5de (diff)
downloadsamba-235cd3e5c462fd559f9ac58f6336e6a9de4b1000.tar.gz
samba-235cd3e5c462fd559f9ac58f6336e6a9de4b1000.tar.bz2
samba-235cd3e5c462fd559f9ac58f6336e6a9de4b1000.zip
selftest: Remove html subunit formatter; it's too simple and really belongs in subunit or testrepository upstream.
Diffstat (limited to 'selftest/format-subunit')
-rwxr-xr-xselftest/format-subunit20
1 files changed, 3 insertions, 17 deletions
diff --git a/selftest/format-subunit b/selftest/format-subunit
index 472f51a815..2224b71191 100755
--- a/selftest/format-subunit
+++ b/selftest/format-subunit
@@ -7,7 +7,7 @@
=head1 NAME
-format-subunit [--format=<NAME>] [--immediate] < instream > outstream
+format-subunit [--immediate] < instream > outstream
=head1 SYNOPSIS
@@ -21,10 +21,6 @@ Format the output of a subunit stream.
Show errors as soon as they happen rather than at the end of the test run.
-=item I<--format>=FORMAT
-
-Choose the format to print. Currently supported are plain or html.
-
=head1 LICENSE
GNU General Public License, version 3 or later.
@@ -41,7 +37,6 @@ use FindBin qw($RealBin $Script);
use lib "$RealBin";
use Subunit qw(parse_results);
-my $opt_format = "plain";
my $opt_help = undef;
my $opt_verbose = 0;
my $opt_immediate = 0;
@@ -49,7 +44,6 @@ my $opt_prefix = ".";
my $result = GetOptions (
'help|h|?' => \$opt_help,
- 'format=s' => \$opt_format,
'verbose' => \$opt_verbose,
'immediate' => \$opt_immediate,
'prefix:s' => \$opt_prefix,
@@ -73,16 +67,8 @@ my $statistics = {
TESTS_SKIP => 0,
};
-if ($opt_format eq "plain") {
- require output::plain;
- $msg_ops = new output::plain("$opt_prefix/summary", $opt_verbose, $opt_immediate, $statistics, undef);
-} elsif ($opt_format eq "html") {
- require output::html;
- mkdir("test-results", 0777);
- $msg_ops = new output::html("test-results", $statistics);
-} else {
- die("Invalid output format '$opt_format'");
-}
+require output::plain;
+$msg_ops = new output::plain("$opt_prefix/summary", $opt_verbose, $opt_immediate, $statistics, undef);
my $expected_ret = parse_results($msg_ops, $statistics, *STDIN);