]> git.donarmstrong.com Git - debbugs.git/commitdiff
the version_cgi test needs a debbugs configuration file
authorDon Armstrong <don@donarmstrong.com>
Sun, 7 Mar 2021 16:10:10 +0000 (08:10 -0800)
committerDon Armstrong <don@donarmstrong.com>
Sun, 7 Mar 2021 16:10:10 +0000 (08:10 -0800)
t/17_version_cgi.t

index cfdc980a724d05eefac400ba9358b4812c498891..0ecb6ae8280011420bc3e126c377d7f89bb98930 100644 (file)
@@ -10,10 +10,15 @@ use DebbugsTest qw(:all);
 
 plan tests => 3;
 
+create_debbugs_configuration();
+
+my $debbugs_config_file = $ENV{DEBBUGS_CONFIG_FILE};
+
 my $port = 11344;
 
 my $version_cgi_handler = sub {
     my $fh;
+    $ENV{DEBBUGS_CONFIG_FILE} = $debbugs_config_file;
     open($fh,'-|',-e './cgi/version.cgi'? './cgi/version.cgi' : '../cgi/version.cgi');
     my $headers;
     my $status = 200;