From be241ce3cc4fea3e9c3297221958cc8a358f091b Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Wed, 17 Aug 2011 16:40:10 +0200 Subject: [PATCH] tap: a minor simplification in the perl TAP driver * lib/tap-driver.pl: The `--disable-hard-errors' option is a no-op, so just ignore it and its argument. --- ChangeLog | 6 ++++++ lib/tap-driver.pl | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3fefbd39f..571218b43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-08-17 Stefano Lattarini + + tap: a minor simplification in the perl TAP driver + * lib/tap-driver.pl: The `--disable-hard-errors' option is a + no-op, so just ignore it and its argument. + 2011-08-17 Stefano Lattarini parallel-tests: fix help screen for test driver scripts diff --git a/lib/tap-driver.pl b/lib/tap-driver.pl index 6d42b2255..ed9913102 100755 --- a/lib/tap-driver.pl +++ b/lib/tap-driver.pl @@ -63,7 +63,6 @@ my $plan_seen = NO_PLAN; my %cfg = ( "color-tests" => 0, "expect-failure" => 0, - "enable-hard-errors" => 1, "merge" => 0, "comments" => 0, "ignore-exit" => 0, @@ -82,7 +81,7 @@ Getopt::Long::GetOptions ( 'trs-file=s' => \$trs_file, 'color-tests=s' => \&bool_opt, 'expect-failure=s' => \&bool_opt, - 'enable-hard-errors=s' => \&bool_opt, + 'enable-hard-errors=s' => sub {}, # No-op. 'diagnostic-string=s' => \$diag_string, 'comments' => sub { $cfg{"comments"} = 1; }, 'no-comments' => sub { $cfg{"comments"} = 0; }, -- 2.47.2