X-Git-Url: http://www.git.stargrave.org/?a=blobdiff_plain;f=t%2Frun.perl;h=b7cb988be3e9b1f123ed484d0fc2ddc0b8e1e128;hb=af0b0fb7a454470a32c452119d0392e0dedb3fe1;hp=1c7bcfc34db6fc3a24f28e468ee3d0d2f6f0827c;hpb=670e37954c1d91fb096dfc8604c2d6ab81d03e08;p=public-inbox.git
diff --git a/t/run.perl b/t/run.perl
index 1c7bcfc3..b7cb988b 100755
--- a/t/run.perl
+++ b/t/run.perl
@@ -1,5 +1,5 @@
#!/usr/bin/perl -w
-# Copyright (C) 2019-2020 all contributors
+# Copyright (C) 2019-2021 all contributors
# License: AGPL-3.0+
#
# Parallel test runner which preloads code and reuses worker processes
@@ -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: $!";