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) {
|
if (!$param{fails} && $status) {
|
||||||
my $firstline = "";
|
my $firstline = "";
|
||||||
if (my $fh = IO::File->new("<$param{logfile}")) {
|
if (my $fh = IO::File->new("<$param{logfile}")) {
|
||||||
$firstline = $fh->getline || '';
|
while (defined(my $line = $fh->getline)) {
|
||||||
chomp $firstline;
|
next if $line =~ /^- /; # Debug message
|
||||||
|
$firstline = $line;
|
||||||
|
chomp $firstline;
|
||||||
|
last;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
$self->error("Exec of $param{cmd}[0] failed: $firstline\n");
|
$self->error("Exec of $param{cmd}[0] failed: $firstline\n");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue