8000 fix t_debug_emitv · verilator/verilator@b40500a · GitHub
[go: up one dir, main page]

Skip to content

Commit b40500a

Browse files
committed
fix t_debug_emitv
1 parent 12581ec commit b40500a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

test_regress/t/t_debug_emitv.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,26 @@
99

1010
import vltest_bootstrap
1111

12-
test.scenarios('vlt')
12+
test.scenarios("vlt")
1313

1414
test.lint(
1515
# We also have dump-tree turned on, so hit a lot of AstNode*::dump() functions
1616
# Likewise XML
1717
v_flags=["--lint-only --dumpi-tree 9 --dumpi-V3EmitV 9 --debug-emitv"])
1818

19-
output_v = test.glob_one(test.obj_dir + "/" + test.vm_prefix + "_*_width.tree.v")
19+
output_vs = test.glob_some(test.obj_dir + "/" + test.vm_prefix + "_*_width.tree.v")
2020

21-
test.files_identical(output_v, test.golden_filename)
21+
for output_v in output_vs:
22+
test.files_identical(output_v, test.golden_filename)
2223

2324
if test.verbose:
2425
# Print if that the output Verilog is clean
2526
# TODO not yet round-trip clean
26-
test.run(cmd=[os.environ["VERILATOR_ROOT"] + "/bin/verilator", "--lint-only", output_v],
27-
logfile=test.obj_dir + "/sim_roundtrip.log",
28-
fails=True,
29-
verilator_run=True)
27+
test.run(
28+
cmd=[os.environ["VERILATOR_ROOT"] + "/bin/verilator", "--lint-only", output_v],
29+
logfile=test.obj_dir + "/sim_roundtrip.log",
30+
fails=True,
31+
verilator_run=True,
32+
)
3033

3134
test.passes()

0 commit comments

Comments
 (0)
0