]> git.donarmstrong.com Git - debbugs.git/blobdiff - t/14_control_at_submit.t
abstract out create config in tests
[debbugs.git] / t / 14_control_at_submit.t
index 6688f53c97aa8d1f78d15aab202d3115098d376a..41c6a03758cd8f7751509e1c30a008e29061f60e 100644 (file)
@@ -28,7 +28,7 @@ use Encode qw(decode encode);
 $SIG{CHLD} = sub {};
 my %config;
 eval {
-     %config = create_debbugs_configuration(debug => exists $ENV{DEBUG}?$ENV{DEBUG}:0);
+     %config = create_debbugs_configuration();
 };
 if ($@) {
      BAIL_OUT($@);
@@ -38,13 +38,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.