]> git.donarmstrong.com Git - debbugs.git/blobdiff - t/08_pkgreport.t
pkgreport does not require common.pl; remove cd
[debbugs.git] / t / 08_pkgreport.t
index 745e35dd4b80b857c306bd654f3fbab6a382c1eb..eabee529287c12b14c880f466dc26fa399b13390 100644 (file)
@@ -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 -I. -T cgi/pkgreport.cgi);
      # Strip off the Content-Type: stuff
      $content =~ s/^\s*Content-Type:[^\n]+\n*//si;
      print $content;