diff options
author | Eric Wong <e@80x24.org> | 2020-12-31 13:51:44 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-01-01 05:00:39 +0000 |
commit | 0308b7313856713a539dde078048c755334f9ae2 (patch) | |
tree | 76c7da1fb5741fe7623a93cf3464932166e1c110 /t | |
parent | 9867a7279070e06caf2768bdb04099e09fea2358 (diff) | |
download | public-inbox-0308b7313856713a539dde078048c755334f9ae2.tar.gz |
Diagnosing an occasional FIFO failure in t/lei_to_mail.t...
Diffstat (limited to 't')
-rwxr-xr-x | t/run.perl | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -71,7 +71,8 @@ sub test_status () { my $skip = ''; if (open my $fh, '<', $log) { my @not_ok = grep(!/^(?:ok |[ \t]*#)/ms, <$fh>); - pop @not_ok if $not_ok[-1] =~ /^[0-9]+\.\.[0-9]+$/; + my $last = $not_ok[-1] // ''; + pop @not_ok if $last =~ /^[0-9]+\.\.[0-9]+$/; my $pfx = "# $log: "; print $OLDERR map { $pfx.$_ } @not_ok; seek($fh, 0, SEEK_SET) or die "seek: $!"; |