mirror of
https://github.com/verilator/verilator.git
synced 2025-01-01 04:07:34 +00:00
Tests: Fix file_grep_count() error message (#5550)
This commit is contained in:
parent
549dd31224
commit
d3d45c0be5
@ -2459,8 +2459,8 @@ class VlTest:
|
|||||||
return
|
return
|
||||||
count = len(re.findall(regexp, contents))
|
count = len(re.findall(regexp, contents))
|
||||||
if expcount != count:
|
if expcount != count:
|
||||||
self.error("File_grep_count: " + filename + ": Got='" + count + "' Expected='" +
|
self.error("File_grep_count: " + filename + ": Got='" + str(count) + "' Expected='" +
|
||||||
expcount + "' in regexp: '" + regexp + "'")
|
str(expcount) + "' in regexp: '" + regexp + "'")
|
||||||
|
|
||||||
def file_grep_any(self, filenames: list, regexp, expvalue=None) -> None:
|
def file_grep_any(self, filenames: list, regexp, expvalue=None) -> None:
|
||||||
for filename in filenames:
|
for filename in filenames:
|
||||||
|
Loading…
Reference in New Issue
Block a user