X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=t%2F08_pkgreport.t;h=df4861d9d0f22f7cd87e5cdae63c4e8796b8360f;hb=759994a97a3e747305961b38eecd825d910e0c59;hp=f834c759284bce5650f135a7a60e75a3372c48d5;hpb=92ff01754ab7cfe083bdff0cdafcd325b91608ea;p=debbugs.git diff --git a/t/08_pkgreport.t b/t/08_pkgreport.t index f834c75..df4861d 100644 --- a/t/08_pkgreport.t +++ b/t/08_pkgreport.t @@ -60,7 +60,8 @@ EOF my $pkgreport_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. -I./cgi -T cgi/pkgreport.cgi); + # We cd here because pkgreport uses require ./common.pl + my $content = qx(cd cgi; perl -I.. -T pkgreport.cgi); # Strip off the Content-Type: stuff $content =~ s/^\s*Content-Type:[^\n]+\n*//si; print $content;