From 1f71fe821a9cd7f83fc0658eb97c43576eb8a29e Mon Sep 17 00:00:00 2001 From: Don Armstrong Date: Wed, 21 Feb 2007 00:01:20 -0800 Subject: [PATCH] chdir in the test to handle require common.pl --- t/08_pkgreport.t | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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; -- 2.39.2