X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2F11_blocks.t;h=95d4de602427378f5ca4d68641713cf720f2d203;hb=210f625e6e6b4cbe1065f35d9eb0bdc73563969c;hp=11c765ac5cdaaebf07d69b503eb694db9dd87551;hpb=40bc07333bc586c54b06861e8b1e02db0d59d7d0;p=debbugs.git diff --git a/t/11_blocks.t b/t/11_blocks.t index 11c765a..95d4de6 100644 --- a/t/11_blocks.t +++ b/t/11_blocks.t @@ -25,25 +25,14 @@ use Test::WWW::Mechanize; # HTTP::Server:::Simple defines a SIG{CHLD} handler that breaks system; undef it here. $SIG{CHLD} = sub {}; -my %config; -eval { - %config = create_debbugs_configuration(debug => exists $ENV{DEBUG}?$ENV{DEBUG}:0); -}; -if ($@) { - BAIL_OUT($@); -} +my %config = create_debbugs_configuration(); + 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. @@ -167,7 +156,7 @@ ok($status->{blockedby} eq '5','bug 3 is blocked by exactly 5'); my $bugreport_cgi_handler = sub { # I do not understand why this is necessary. $ENV{DEBBUGS_CONFIG_FILE} = "$config{config_dir}/debbugs_config"; - my $content = qx(perl -I. -T cgi/bugreport.cgi); + my $content = qx(perl -Ilib -T cgi/bugreport.cgi); $content =~ s/^\s*Content-Type:[^\n]+\n*//si; print $content; };