Tests: Ignore debug message in error line
This commit is contained in:
parent
bc97319402
commit
9eba61018a
|
|
@ -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");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue