]> git.donarmstrong.com Git - debbugs.git/blobdiff - t/10_expire.t
abstract out create config in tests
[debbugs.git] / t / 10_expire.t
index 502feeada5bce56b50828dfe02d834226193cf20..fef4094dd6cf4d1cdbbfb096e4108b1a4f556aec 100644 (file)
@@ -27,7 +27,7 @@ use Data::Dumper;
 $SIG{CHLD} = sub {};
 my %config;
 eval {
-     %config = create_debbugs_configuration(debug => exists $ENV{DEBUG}?$ENV{DEBUG}:0);
+     %config = create_debbugs_configuration();
 };
 if ($@) {
      BAIL_OUT($@);
@@ -37,13 +37,7 @@ my $sendmail_dir = $config{sendmail_dir};
 my $spool_dir = $config{spool_dir};
 my $config_dir = $config{config_dir};
 
-END{
-     if ($ENV{DEBUG}) {
-         diag("spool_dir:   $spool_dir\n");
-         diag("config_dir:   $config_dir\n");
-         diag("sendmail_dir: $sendmail_dir\n");
-     }
-}
+
 
 # We're going to use create mime message to create these messages, and
 # then just send them to receive.