Skip to content

Commit 00bfc83

Browse files
committed
Correctly handle waves attribute in cocotb_test rule
Previously, the waves attribute was the only one that was not passed to the cocotb script that ran the simulation. Internal-tag: [#46586] Signed-off-by: Robert Winkler <[email protected]>
1 parent d600f1a commit 00bfc83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cocotb/cocotb.bzl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ def _cocotb_test_impl(ctx):
8888
parameters_args = _dict_to_argstring(ctx.attr.parameters, "parameters")
8989

9090
verbose_args = " --verbose" if ctx.attr.verbose else ""
91+
waves_args = " --waves" if ctx.attr.waves else ""
9192
seed_args = " --seed {}".format(ctx.attr.seed) if ctx.attr.seed != "" else ""
9293

9394
test_module_args = _pymodules_to_argstring(ctx.files.test_module, "test_module")
@@ -117,6 +118,7 @@ def _cocotb_test_impl(ctx):
117118
defines_args +
118119
parameters_args +
119120
verbose_args +
121+
waves_args +
120122
seed_args +
121123
test_module_args
122124
)

0 commit comments

Comments
 (0)