]> git.donarmstrong.com Git - debbugs.git/commitdiff
pkgreport does not require common.pl; remove cd
authorDon Armstrong <don@donarmstrong.com>
Fri, 9 Jun 2017 19:34:15 +0000 (12:34 -0700)
committerDon Armstrong <don@donarmstrong.com>
Thu, 22 Jun 2017 01:27:20 +0000 (20:27 -0500)
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;