mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
Tests: Ignore debug message in error line
This commit is contained in:
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user