mirror of
https://github.com/verilator/verilator.git
synced 2025-04-05 12:12:39 +00:00
Tests: Fix driver creating .out with --gold
This commit is contained in:
parent
0b7510befa
commit
c2b82c293f
@ -2180,9 +2180,9 @@ class VlTest:
|
|||||||
fn2, 'r', encoding='latin-1', newline='\n')
|
fn2, 'r', encoding='latin-1', newline='\n')
|
||||||
except FileNotFoundError:
|
except FileNotFoundError:
|
||||||
f2 = None
|
f2 = None
|
||||||
if 'HARNESS_UPDATE_GOLDEN' not in os.environ:
|
if not moretry:
|
||||||
if not moretry:
|
self.copy_if_golden(fn1, fn2)
|
||||||
self.error("Files_identical file does not exist: " + fn2)
|
self.error("Files_identical file does not exist: " + fn2)
|
||||||
return True
|
return True
|
||||||
ok = self._files_identical_reader(f1,
|
ok = self._files_identical_reader(f1,
|
||||||
f2,
|
f2,
|
||||||
@ -2204,12 +2204,13 @@ class VlTest:
|
|||||||
if is_logfile:
|
if is_logfile:
|
||||||
l1o = []
|
l1o = []
|
||||||
for line in l1s:
|
for line in l1s:
|
||||||
if (re.match(r'^- [^\n]+\n', line) or re.match(r'^- [a-z.0-9]+:\d+:[^\n]+\n', line)
|
if (re.match(r'^- [^\n]+\n', line) #
|
||||||
or re.match(r'^-node:', line) or re.match(r'^dot [^\n]+\n', line)
|
or re.match(r'^- [a-z.0-9]+:\d+:[^\n]+\n', line)
|
||||||
or re.match(r'^Aborted \(core dumped\)', line)
|
or re.match(r'^-node:', line) #
|
||||||
or re.match(r'^dot [^\n]+\n', line)
|
or re.match(r'^dot [^\n]+\n', line) #
|
||||||
or re.match(r'^In file: .*\/sc_.*:\d+', line)
|
or re.match(r'^Aborted', line) #
|
||||||
or re.match(r'^libgcov.*', line)
|
or re.match(r'^In file: .*\/sc_.*:\d+', line) #
|
||||||
|
or re.match(r'^libgcov.*', line) #
|
||||||
or re.match(r'--- \/tmp\/', line) # t_difftree.py
|
or re.match(r'--- \/tmp\/', line) # t_difftree.py
|
||||||
or re.match(r'\+\+\+ \/tmp\/', line) # t_difftree.py
|
or re.match(r'\+\+\+ \/tmp\/', line) # t_difftree.py
|
||||||
or re.match(r'^==[0-9]+== ?[^\n]*\n', line)): # valgrind
|
or re.match(r'^==[0-9]+== ?[^\n]*\n', line)): # valgrind
|
||||||
|
Loading…
Reference in New Issue
Block a user