X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2F07_control_limit.t;h=1283223a4b3ed35802c87e41c7e89b7a33121eb5;hb=a40fd8e928b333287f7f52f590c8e2d0c2f90821;hp=f4f600ba5409f64af63d562b3d7532f2f349c959;hpb=5b550d03e9214a7980a5cd4897cf9de09d89749b;p=debbugs.git diff --git a/t/07_control_limit.t b/t/07_control_limit.t index f4f600b..1283223 100644 --- a/t/07_control_limit.t +++ b/t/07_control_limit.t @@ -26,7 +26,7 @@ use Data::Dumper; $SIG{CHLD} = sub {}; my %config; eval { - %config = create_debbugs_configuration(debug => exists $ENV{DEBUG}?$ENV{DEBUG}:0); + %config = create_debbugs_configuration(); }; if ($@) { BAIL_OUT($@); @@ -36,13 +36,7 @@ my $sendmail_dir = $config{sendmail_dir}; my $spool_dir = $config{spool_dir}; my $config_dir = $config{config_dir}; -END{ - if ($ENV{DEBUG}) { - diag("spool_dir: $spool_dir\n"); - diag("config_dir: $config_dir\n"); - diag("sendmail_dir: $sendmail_dir\n"); - } -} + # We're going to use create mime message to create these messages, and # then just send them to receive. @@ -78,7 +72,7 @@ $SD_SIZE = 'control@bugs.something messages appear to have been sent out properly'); # make sure this fails -ok(system('sh','-c','find '.$sendmail_dir.q( -type f | xargs grep -q "Subject: Processed (with 1 errors): Munging a bug with limit_package_bar")) == 0, +ok(system('sh','-c','find '.$sendmail_dir.q( -type f | xargs grep -q "Subject: Processed (with 1 error): Munging a bug with limit_package_bar")) == 0, 'control@bugs.something'. "limit message failed with 1 error"); send_message(to => 'control@bugs.something', @@ -134,7 +128,7 @@ $SD_SIZE = 'control@bugs.something messages appear to have been sent out properly'); # make sure this fails -ok(system('sh','-c','find '.$sendmail_dir.q( -type f | xargs grep -q "Subject: Processed (with 1 errors): Munging a bug with limit_package_bar")) == 0, +ok(system('sh','-c','find '.$sendmail_dir.q( -type f | xargs grep -q "Subject: Processed (with 1 error): Munging a bug with limit_package_bar")) == 0, 'control@bugs.something'. "limit message failed with 1 error"); send_message(to => 'control@bugs.something',