Skip to content

Commit

Permalink
Tests: Ignore debug message in error line
Browse files Browse the repository at this point in the history
  • Loading branch information
wsnyder committed Aug 12, 2023
1 parent bc97319 commit 9eba610
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions test_regress/driver.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1680,8 +1680,12 @@ sub _run {
if (!$param{fails} && $status) {
my $firstline = "";
if (my $fh = IO::File->new("<$param{logfile}")) {
$firstline = $fh->getline || '';
chomp $firstline;
while (defined(my $line = $fh->getline)) {
next if $line =~ /^- /; # Debug message
$firstline = $line;
chomp $firstline;
last;
}
}
$self->error("Exec of $param{cmd}[0] failed: $firstline\n");
}
Expand Down

0 comments on commit 9eba610

Please sign in to comment.