+ chdir($cwd) or DIE "chdir($cwd): $!";
+ if ($log_suffix ne '') {
+ my $log = $worker_test;
+ $log =~ s/\.t\z/$log_suffix/;
+ if (open my $fh, '<', $log) {
+ my @not_ok = grep(!/^(?:ok |[ \t]*#)/ms, <$fh>);
+ pop @not_ok if $not_ok[-1] =~ /^[0-9]+\.\.[0-9]+$/;
+ print OLDERR map { "# $log: $_" } @not_ok;
+ } else {
+ print OLDERR "could not open: $log: $!\n";
+ }
+ print OLDOUT "$status $worker_test\n";
+ }