X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2F08_pkgreport.t;h=5a3339062f2beba78e0124ebd877f70505c5521c;hb=ee73b48c52cedb53381b6c0291693fa1e2a66d2c;hp=745e35dd4b80b857c306bd654f3fbab6a382c1eb;hpb=ab5672e5c53a0b735b64f59fd7f060f787a7e91c;p=debbugs.git diff --git a/t/08_pkgreport.t b/t/08_pkgreport.t index 745e35d..5a33390 100644 --- a/t/08_pkgreport.t +++ b/t/08_pkgreport.t @@ -46,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 -Ilib -T cgi/pkgreport.cgi); # Strip off the Content-Type: stuff $content =~ s/^\s*Content-Type:[^\n]+\n*//si; print $content;