Skip to content

Commit

Permalink
paused: fix tests by writing logs to devnull in test
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbs committed Apr 28, 2024
1 parent feb2e20 commit dae7440
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/paused
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ use PAUSE::Logger '$Logger' => { init => {
facility => 'daemon',
to_file => 1,
log_path => '/', # because log_file will be absolute
log_file => $PAUSE::Config->{PAUSE_LOG},
log_file => $ENV{PAUSE_PAUSED_LOG_FILE} // $PAUSE::Config->{PAUSE_LOG},
} };

use DBI ();
Expand Down
4 changes: 2 additions & 2 deletions t/programs.t
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ use TestSetup;

sub _f ($) {File::Spec->catfile(split /\//, shift);}

my $Id = q$Id: bap.t 26 2003-02-16 19:01:03Z k $;

my @s = qw(
bin/paused
cron/mldistwatch
Expand All @@ -26,6 +24,8 @@ my $tests_per_loop = 1;
my $plan = scalar @s * $tests_per_loop;
plan tests => $plan;

$ENV{PAUSE_PAUSED_LOG_FILE} = "/dev/null";

my $devnull = File::Spec->devnull;
for my $s (1..@s) {
my $script = _f($s[$s-1]);
Expand Down

0 comments on commit dae7440

Please sign in to comment.