From: Don Armstrong Date: Wed, 21 Feb 2007 08:01:20 +0000 (-0800) Subject: chdir in the test to handle require common.pl X-Git-Tag: release/2.6.0~585^2^2~9 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=1f71fe821a9cd7f83fc0658eb97c43576eb8a29e;p=debbugs.git chdir in the test to handle require common.pl --- 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;