File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ load("@aspect_rules_js//js:defs.bzl", "js_binary")
44#
55# load("@bazel-orfs//tools/pin:pin.bzl", "pin_data")
66load ("@bazel-orfs//toolchains/scala:chisel.bzl" , "chisel_library" )
7+
78# Temporarily disabled during BCR rules_scala migration
89# load("@bazel-orfs//toolchains/scala:scala_bloop.bzl", "scala_bloop")
910load ("@bazel_orfs_rules_python//python:defs.bzl" , "py_binary" )
Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ def chisel_library(name, **kwargs):
6161
6262def _chisel_test_wrapper_impl (ctx ):
6363 """Implementation of chisel_test wrapper that creates a launcher script with expanded env vars."""
64+
6465 # Get the underlying scala_test target
6566 test_target = ctx .attr .test
6667
@@ -169,22 +170,23 @@ exec "$RUNFILES_DIR/{workspace}/{test_path}" "$@"
169170_chisel_test_with_env_test = rule (
170171 implementation = _chisel_test_wrapper_impl ,
171172 attrs = {
173+ "data" : attr .label_list (
174+ allow_files = True ,
175+ ),
176+ "env" : attr .string_dict (),
172177 "test" : attr .label (
173178 mandatory = True ,
174179 providers = [DefaultInfo ],
175180 executable = True ,
176181 cfg = "target" ,
177182 ),
178- "env" : attr .string_dict (),
179- "data" : attr .label_list (
180- allow_files = True ,
181- ),
182183 },
183184 test = True ,
184185)
185186
186187def chisel_test (name , ** kwargs ):
187188 """Wrapper for scala_test with Chisel and Verilator configuration."""
189+
188190 # Extract env dict that needs expansion
189191 env_to_expand = {
190192 # Doesn't work in hermetic mode, no point in Bazel, no home folder
You can’t perform that action at this time.
0 commit comments