X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2F08_pkgreport.t;h=eabee529287c12b14c880f466dc26fa399b13390;hb=64267ddd252ea24e5aeb4bb999a22a1b1f0f2d85;hp=df4861d9d0f22f7cd87e5cdae63c4e8796b8360f;hpb=1f71fe821a9cd7f83fc0658eb97c43576eb8a29e;p=debbugs.git diff --git a/t/08_pkgreport.t b/t/08_pkgreport.t index df4861d..eabee52 100644 --- a/t/08_pkgreport.t +++ b/t/08_pkgreport.t @@ -23,22 +23,8 @@ use Test::WWW::Mechanize; use lib qw(t/lib); use DebbugsTest qw(:all); -my %config; -eval { - %config = create_debbugs_configuration(debug => exists $ENV{DEBUG}?$ENV{DEBUG}:0); -}; -if ($@) { - BAIL_OUT($@); -} - -# Output some debugging information if there's an error -END{ - if ($ENV{DEBUG}) { - foreach my $key (keys %config) { - diag("$key: $config{$key}\n"); - } - } -} +my %config = create_debbugs_configuration(); + # create a bug send_message(to=>'submit@bugs.something', @@ -60,8 +46,7 @@ EOF my $pkgreport_cgi_handler = sub { # I do not understand why this is necessary. $ENV{DEBBUGS_CONFIG_FILE} = "$config{config_dir}/debbugs_config"; - # We cd here because pkgreport uses require ./common.pl - my $content = qx(cd cgi; perl -I.. -T pkgreport.cgi); + my $content = qx(perl -I. -T cgi/pkgreport.cgi); # Strip off the Content-Type: stuff $content =~ s/^\s*Content-Type:[^\n]+\n*//si; print $content;