about summary refs log tree commit homepage
path: root/lib/PublicInbox/TestCommon.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2021-04-24 20:09:36 +0000
committerEric Wong <e@80x24.org>2021-04-24 16:10:17 -0400
commitb437cc7f5ad2712d9064c691c5946be80a73eedb (patch)
treefbdc316300fd969af69dffcd1de04b1567b40241 /lib/PublicInbox/TestCommon.pm
parent1c0dce28a8604b16488ea7416dcf1bddd66a5d42 (diff)
downloadpublic-inbox-b437cc7f5ad2712d9064c691c5946be80a73eedb.tar.gz
This allows proper error reporting on daemon failure
when using "check-run".
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r--lib/PublicInbox/TestCommon.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm
index 49cecacd..09256852 100644
--- a/lib/PublicInbox/TestCommon.pm
+++ b/lib/PublicInbox/TestCommon.pm
@@ -321,6 +321,7 @@ sub run_script ($;$$) {
         # slurp the redirects back into user-supplied strings
         for my $fd (1..2) {
                 my $fh = $fhref->[$fd] or next;
+                next unless -f $fh;
                 seek($fh, 0, SEEK_SET) or die "seek: $!";
                 my $redir = $opt->{$fd};
                 local $/;